JSON or JavaScript Object Notation

learn more… | top users | synonyms

0
votes
1answer
19 views

JSON URL access restriction within Drupal

I am using Drupanium in Drupal which generates JSON that can be assessed through a URL. The URL in turn is parsed by the app to show data. Now the problem is that this URL can be publicly assessed by ...
0
votes
0answers
20 views

What data formats can be returned by the Apache Solr module? Trying to return raw JSON

I have heard that data returned by the apachesolr module for display & processing in Drupal is only in the form of a PHP array, even though Solr is capable of returning json, xml, and other ...
0
votes
1answer
52 views

jQuery is not working for inserting data

I want to save data from a textbox on a button click. I am using jQuery AJAX for this task. Please note that I made this tags inside theme function. function theme_user_post_block($vars) { ...
2
votes
1answer
51 views

error while editing views

When I'm editing a view and I click on one of the fields to edit them I get a javascript error Error: TypeError: c.curCSS is not a function Source File: ...
1
vote
1answer
46 views

Retrieving jsonp data with callback function

I need to call a service to retrieve the available values for a select in a form I am creating. Therefore, I need to do this in the .module file and load the options with an array of items that I ...
1
vote
0answers
18 views

How to group by referenced node in Views GeoJSON?

Also posted at http://drupal.org/node/1984446 My site has a Building content type, each node of which describes a building on my university campus. The content type includes a Geofield, with a point ...
0
votes
1answer
42 views

Exporting webform information programmatically

I have a Drupal site that uses the Webform module. It has many options for downloading the results via the Drupal interface but it doesn't have anything out the box to get the data programmatically ...
0
votes
0answers
32 views

Drupal JSON customization in a Dynamic Scrolling Table for an App

I need to control my JSON output with my App to implement Dynamic Scrolling. I was able to create JSON output within Drupal through Services + REST. I created a view named content and configured it ...
1
vote
3answers
55 views

Pull all articles from my Drupal Site as JSON

I am trying to pull all articles from my site in form of JSON. I know it can be done by either Services, RESTful Web Services or Views Datasource but I don't know how to do it. I am a complete n00b ...
1
vote
1answer
76 views

Outputing a json file in drupal 6

I'm linking an android app with a drupal 6 server. Basically the app should be able to request information from the server to sync data and other simple functions. JSON is our preferred way of ...
1
vote
0answers
120 views

500 Internal Server Error Services REST JSON Content

I am retrieving JSON from my Drupal Site to show content on an external Device. I am using Drupanium/REST/Services to do so. Now the problem is weird. When I try to access this URL, it works fine:- ...
0
votes
1answer
48 views

Modifying user view to display correct gender

In Drupal 7.21 with ulogin 7.x-1.10 I get following records in the database for male (having sex=2 in the JSON array below) and female (they have sex=1) users: 5 | 25583 | facebook | 597287941 ...
1
vote
1answer
240 views

Post AJAX JSON with session id

Using Drupal Services I am able to log in but each time I post a node it posts as anonymous. I get the session id and session name upon login but can“t pass it along with a POST no matter what i try. ...
2
votes
0answers
69 views

Services 3 Output alter hook

Are there any hooks to alter the Services modules output. For eg : If I get a result like this for a file object. { "fid": "132", "uri": "public:\/\/512dab4918036.jpg", "filename": ...
2
votes
1answer
148 views

drupal 7 + services 3 - inserting nodes with select fields

I'm using Drupal 7 + Services 3 to create nodes with POST and JSON. Everything works fine, except field types of select - entity reference select or plain text. The entity reference uses the ...
1
vote
2answers
213 views

Views JSON output

Can anyone tell me how I can get plain JSON output with no surrounding HTML? I am using the Views and Views JSON modules to get my node data as JSON output. The problem is my JSON output still comes ...
1
vote
1answer
79 views

Services 3 JSON format [null] at end of all result

I am using services module recently i have noticed that i am getting all responses along with [NULL] at the end. So my app dev team is unable to parse the JSON. What i am doing wrong ? What may be ...
2
votes
0answers
90 views

Templating JSON

Is there a Drupal way to template the results of ajax query that returns JSON. The JSON is is being returned to some php module code. If there is not a Drupal way I was thinking of using something ...
0
votes
0answers
143 views

Sending JSON data on webform submission

To start off I would like to point out on a bit of a Drupal noob still. So bare with me please :). I would appreciate it if you can be very specific with your answers. Thank you before hand! I want ...
2
votes
1answer
54 views

Content types accessible to a role

I have a requirement to return a list of content types accessible to a user in JSON format using services module. I have followed this approach: Used Content Access Control module to set the ...
1
vote
2answers
191 views

What hook can I use to modify Views Datasource JSON output?

I'm using Views and Views Datasource to generate a JSON feed for my site. I've got a Video field which has both a video and a thumbnail image. I want to include the url of the thumbnail image in my ...
0
votes
0answers
114 views

Drupal autocomplete access json data in js

Autocompletion is working as expected on my form field using drupal_json_output($matches); Now I'm trying to acces this data with the following code in my module js file: (function($) { ...
1
vote
0answers
204 views

Import JSON feed and display as a page?

I'm making my first Drupal Module, and I'm just looking for some tips/direction for development. The module will parse a JSON feed and simply show each object in a formatted way as a simple page. I ...
0
votes
0answers
314 views

Get Thumbnail Image URL for Video in Views

I've got a Video field and the Video Thumbnail is uploaded by the user. I've got a View which is generating JSON (with the views_datasource extension). I want to include the image url to the Video ...
0
votes
0answers
37 views

Views Datasource JSON Video field should be empty but it contains a url

I'm trying to use the the views_datasource module and I like it. I'm having one issue though and wondering if you can help. My Article nodes have a field_video which is optional. In the generated ...
0
votes
0answers
129 views

How to speed up json views in drupal 7

I am trying to get json response from my drupal7 site using Views. Example : www.mysite.com/company company refers to a view which was created using json document I also applied caching to the ...
3
votes
1answer
125 views

Is there advantage to using Drupal.settings, as opposed to directly passing json-encoded var to javascript function

Inside my custom views template, views-view-myview.tpl.php, I have a variable ("$myvar"), which I need to pass to a custom javascript function. Here is how I am currently doing it: A. json-encode ...
1
vote
0answers
276 views

Create Json from a view

I'm trying to create a json from Views, using Views Datasource. The problem is that if I create a display "page", using Json as style, if I try to go to www.mysite.com/path/to/page the system doesn't ...
2
votes
0answers
453 views

Drupal Services send JSON from Android

My Android developer and I are having trouble posting the JSON data to our drupal services. I am not familiar with Java but I have used Httpposter to post my JSON data to create nodes on my site. We ...
0
votes
0answers
16 views

search api /w custom feeds

I have created a feed json and xpath parser that get products from sites like Amazon, zappos, etc. I want to be able to integrate it into my search without having to import the feeds into my site ...
1
vote
1answer
281 views

Module ā€œServicesā€ doesn't create term_referense field

Set up the Services module as REST server, so I can create nodes with custom fields by REST client like in documentation @ drupal.org. Settings of Services module: Server => REST Path to endpoint ...
3
votes
2answers
1k views

Get the latitude and longitude from the user ip

I am trying to get the latitude and longitude from the user who connected to my website to draw or show his position on a map, but it showed him in the wrong postion. Is there any way to get the ...
0
votes
0answers
95 views

What method should be followed to get html content along with drupal views

I am working with drupal 7 views. I created a simple CCK which contains a title and a body . I added HTML content to body and selected Formater to Full html. content sample : <html> ...
1
vote
0answers
449 views

Create a drupal node via a rest server with json content type [closed]

I want to create drupal (version 6.21) nodes from an iphone application. For this I am using a REST server. I am using Firefox poster plugin to test my requests to the rest server. url: drupal ...
0
votes
0answers
266 views

Drupal 7 JSON Pass Argument to Views

This is kind of complicated so I will spell it out here. I have the following elements of my page: Block 1: View of Taxonomy Terms Block 2: View of Content I'm attempting to pass an ...
2
votes
1answer
308 views

Getting views data as a REST service

I need a way to get the output of a view as a REST service in JSON format. I read about the RestfulWS and the Services modules, but I didn't find enough documentation. Are these straight forward, or ...
0
votes
0answers
73 views

Fetching data(body and image) from nodes to use for jQuery written in template.php

I have to write jQuery in template.php which is something like this. slides: [ // Slideshow Images {image : 'Path_to_Image', title:'title', desc:'body_of_article'}, {image : ...
1
vote
1answer
135 views

cck dynamic select list in a array

I have used the code like this $ch2 = curl_init("http://openexchangerates.org/api/currencies.json"); curl_setopt($ch2, CURLOPT_RETURNTRANSFER, 1); $json2 = curl_exec($ch2); curl_close($ch2); ...
0
votes
2answers
207 views

How to fetch 10 10 records in json format using views

I am working on views(D7) for providing JSON web services ... I am using JSON_data_document module My question is How to get the data returned from the views in ten,ten records. Example : consider ...
1
vote
0answers
187 views

How to use JSON data generated by views_datasource as a php array?

I extracted data in JSON Format from a view (using views_datasource). This is the snap-shot of preview of view. Now I want to use this data as php array/object so that I can access each field ...
0
votes
0answers
311 views

Drupal 7 - Creating DYNAMIC dependent autocomplete form fields

I'm wondering if anyone can assist me in updating the code detailed here (http://oif.eafarris.com/blog/pre-fill-cck-node-fields-based-on-a-node-re...) for Drupal 7. The function described in that post ...
0
votes
0answers
139 views

Services module in drupal 7 is returning NULL

I am using drupal 7 and created sample nodes. I enabled services module and REST api. When i try to call the data of a particular node like www.mydrupaltest.com/api/node/2 it is returning NULL. Does ...
0
votes
0answers
325 views

Retrieve contents from a JSON URL using cURL and display them in an html table Drupal 7

I am trying to display contents retrieved from an external URL using jSON (the cURL method). So i wrote the below function: function file_get_contents_curl() { //jSON URL which should be requested ...
0
votes
0answers
162 views

drupal_json not property escaping content

I'm using drupal_json() to create a json response with the proper headers, but it's not outputting valid json (according to http://jsonformatter.curiousconcept.com). The output is simply arrays of ...
0
votes
0answers
224 views

Produce JSON output from taxonomy tree

I am trying to return a taxonomy tree in the JSON format but the issue is that I would like to have it nested based on the depth of the term, like the following format: What is the easiest way to do ...
0
votes
2answers
704 views

Why doesn't “Allow multiple values” in Views' Contextual Filter work?

I'll try to explain this as simply as possible... I'm using the Views Datasource plugin to create a JSON view to output a restaurant list. We need to be able to filter the list via several fields - ...
0
votes
0answers
215 views

Parseerror response when trying to receive json data via ajax in Drupal

I am trying to receive a node form via ajax in Drupal. Normally I should have created an ahah triggered button that brings and displays nicely the json data. I did it for testing and it worked very ...
0
votes
2answers
310 views

How to parse data field?

I'm using Drupal 7.14 + ulogin module (for auth. through social networks) and have following records in the database: # select uid,name,data from drupal_users where uid=20041; uid | ...
1
vote
1answer
531 views

Can you use jQuery to display a view?

I want to do something similar to views slideshow. The thing is my javascript is written already. I would like my javascript to be able to be integrated within the drupal framework from views. The ...
1
vote
1answer
865 views

JSONP requests not working in REST server

This is related to a bug report I filed just moments ago. If there's someone who has successfully used the REST server in the Services module with JSONP requests (cross-domain), I'd be happy to hear ...

1 2