JSON or JavaScript Object Notation

learn more… | top users | synonyms

1
vote
0answers
22 views

Drupal Services node filtering based on taxonomy terms

I followed this post, I am able to filter nodes based on content type and other parameters http://test/api/node?parameters[nid]=1&parameters[status]=1 but I am not able to filter based on ...
0
votes
1answer
32 views

Why page call back is not needed in Ajax jQuery Drupal 6?

function example_menu() { $items['example-menu'] = array( 'page callback' => 'get-result', 'access arguments' => array('access content'), 'type' => MENU_CALLBACK, ...
0
votes
1answer
48 views

How to Post JSON data to Cart service in Drupal Commerce Services

I'm uses Drupal commerce services for mobile commerce. But I don't know how to Post jSON to REST service Cart or Order. With Comment services I"m post JSON successful as below: URL: ...
1
vote
1answer
53 views

Get JSON geolocation data into Google Maps Module [closed]

I have some JSON data with lat/lon values. I'm trying to plot these points on a google maps module. Which google maps module should I use and what is the easiest way to go about this? Thanks
1
vote
2answers
44 views

drupal_json_output() output ascii

I have a module that populate commerce cart product titles. The function looks like this: function spcart_get(){ global $user; $order = commerce_cart_order_load($user->uid); $wrapper = ...
0
votes
0answers
36 views

Creating JSON-RPC PHP client/server setup: permissions question

I am currently creating two modules in two sites, a client and a server on each site respectively. I want the client to be able to be called from code in any module that needs to communicate with the ...
0
votes
0answers
16 views

Migrate : Update not working

Im using the migrate module to import data from a json feed. Mostly work fine however, i require that each time the feed is imported , updated records in the source are updated in the destination if ...
0
votes
1answer
39 views

Ordering results for D7 form autocomplete fields

I've done the cursory Googling but so far haven't found anything close to an answer for this. I'm using the Masquerade module with a custom module on top to extend it and make its searching ...
1
vote
1answer
45 views

How to render a nodequeue queue as custom JSON (Drupal 6.x)?

What would be the most sensible way to render a nodequeue queue in a custom JSON format (using Drupal 6) We have a nodequeue that is both included in the UI in various places and served in a RSS ...
1
vote
2answers
191 views

How to create user with role through REST service (Drupal 7)

I could able to create a new user by the following JSON format.(Using POSTER add-on to post this data to REST service.) {"name":"user34","pass":"3323","mail":"sample@example.com","status":"1"} My ...
1
vote
1answer
259 views

Register User with Services (JSON) with Custom Fields

I am trying to register a new user on Drupal7 via services with JSON. Actually I am posting info from JAVA (android) with JSON format to the server with services module enabled. A sample successful ...
0
votes
0answers
125 views

Colorbox Modal Does Not Open for Flickr JSON Request

I have created a Flickr JSON request that returns a set of thumbnail images. Clicking on the thumbnail should open the Colorbox modal and display the image. I have this working in a FIDDLE. However, ...
0
votes
1answer
112 views

date filter not working in querystring

We have used Drupal7 and Service3 module .We have created a service view and date (between operator used) filter working there. We have added service view as .json format and pass date in query string ...
0
votes
1answer
24 views

Feeding JSON into a Content Type and allow for updates

So I have a JSON feed coming from a provider that I'd like to turn into a node type for D7. Within this feed we have a lot of common things like Bios, Names, Pictures, stats, etc. This feed can ...
0
votes
0answers
25 views

Properly parse json flickr strings from the body markup

I have disected the body field of the node: $body = $variables['node']->body['und'][0]['value']; and I got: ...
1
vote
1answer
132 views

Add JS to specific pages AFTER all other JS

I am working with JSON to theme Google Maps in the api v3. I have my custom JSON script as an external JS file, and I am currently referencing it in html.tpl.php after the other scripts are loaded. ...
-1
votes
1answer
116 views

How to display JSON returned (from external REST API) in a Block? [my code attempt inside]

I am trying to display the data from a REST API (URL: 'http://api.kivaws.org/v1/loans/38239/lenders.json') to display in a block. Below is my code. It is not working, any hint on why will be sincerely ...
1
vote
0answers
43 views

Drupal Feed Importer - Parse JSON doument

I am really struggling with the syntax for importing JSON feeds, so much so that I currently cannot even import one but of this. Does anyone know the context for this and how I can grab the fields? ...
2
votes
0answers
142 views

How to get location (longitude and latitude) from json data show on map?

I am using Openlayers module to have a map. In my json, it has longitude and latitude field. I want to get them to show on map so that user can see the location with the marker. Is there any way to ...
1
vote
0answers
57 views

Search a URL list, return JSON values into a dynamically generated table

I am looking for a Drupal Service or a Module (or a link to a working example) of this arrangement: There's a Search form. Placing and submitting the search will make a REST call for certain values ...
0
votes
0answers
23 views

How to save data in the database using web service in drupal 7 [duplicate]

I am new for drupal, I want to save data through web service. In my form there are four fields name, email, description and file. I don't know how to save this data through web service in database. I ...
1
vote
2answers
329 views

Passing multiple array to drupal_json_output() is not giving correct output in jquery ajax

Passing multiple array to drupal_json_output() is not giving correct output in jquery ajax. I am using a menu_callback function and returning a multiple array like function test_callback() { ...
0
votes
1answer
121 views

call a function of my custom module from js [closed]

i'm new developer in drupal...sorry for my question.. With my custom module i'm creating a block that show searched tweets with hashtags. I'm using an external library TwitterAPI 1.1. So,i created a ...
1
vote
3answers
723 views

How to configure REST server to create new node from URL parameters?

Drupal 7.23 Services 7.x-3.5 I've followed the instructions for setting up Services module, including https://drupal.org/node/1699354. I got the endpoint setup successfully. I am able to retrieve ...
2
votes
1answer
199 views

How to add data to Drupal.settings without drupal_add_js

Is there any way to add some variables to Drupal.settings without drupal_add_js (with setting argument). I'm creating a site that has a custom ctools popup style but I'm not feeling good with ...
0
votes
0answers
18 views

How to use use REST APIs in Drupal? [duplicate]

I will present the problem as an example: If I want to use the twitter API: https://dev.twitter.com/docs/api/1.1/get/statuses/mentions_timeline In the link above, under "Example Request", it shows ...
1
vote
1answer
248 views

Parse error on JSON response containing URL value

In my code it is making Ajax request for json data. For JSON output I am using drupal_json() function. But on browser side it is invoking error handler instead of success handler and getting ...
0
votes
2answers
108 views

Override autocomplete provided by module to not suggest current user(self)

I hope it's pretty clear from my question title itself. I want to override autocomplete provided by module such as privatemessage to not suggest the current user(self) who is trying to send message. I ...
1
vote
2answers
100 views

Expand Addressfield Components in Views

Situation : I have added few more fields in user registration form using account settings->manage fields. The type of the field is cck address field. I created a new view as json document, and I ...
0
votes
0answers
53 views

JSON Parser Duplicating Nodes on Cron Import

I have a cron set up to import using JSON Parser / Feeds, but with each import it duplicates the existing nodes. I'd really like to only import the new items. Is this possible? What am I missing?
0
votes
0answers
31 views

Include children of a node in RESTful json

How can I serve children of a node in a single json with RESTful? Here is what I'm getting: (...) ...a bunch of properties... (...) u'field_mychild': [{u'id': u'69', ...
0
votes
1answer
36 views

What should be the optimum values for Minimum cache lifetime and Expiration of cached pages

i am working on a mobile app. Using drupal json views i am parsing the data and displaying on the device. It takes nearly 10 sec to load 10 records on the device. Initially i thought this might be due ...
0
votes
0answers
366 views

Ajax doesn't properly work: The success function is called but the page is being printed instead of the page callback results

I am using AJAX in Drupal 7 to get data from the bounds of a map, serialize it as a string, and submit as post to server to be added as a filter for a view to make a display respond to changes in zoom ...
0
votes
1answer
395 views

How do I PUT update on a node using services 3

I have a node with field_order_status field(not required) in list(text) type and radio button widget and I want to update a node(nid:95) but my sample JSON PUT content(application/json) throws Status ...
0
votes
0answers
320 views

How do I create a node with Services 3.4, REST, and JSON? [404 Error arises]

I've seen other posts about this, but none that are having the same problem as I am. I understand that recent updates require the header to contain the session info and token and have updated my code ...
0
votes
1answer
34 views

Generate page for each json entry

I'm new to Drupal. I want to customize the search module in order to show results from an external JSON. I was able to insert JSON data in the search page, but now I want to generate a page for each ...
2
votes
1answer
941 views

How I can return JSON data with Drupal 7

card.module drupal_add_js('jQuery(document).ready(function () { currentRequest = $.ajax({ timeout:0, cache: false, url: pageUrl, dataType: "json", type: "GET", success: function(data){ ...
0
votes
0answers
41 views

How to replace or exclude the single quote which is rendered from jsonviews

I have created a json view using views_datasource. I assigned the node title to Corn's. But when i call the jsonview from a url , i am getting the response as cron's Can anyone guide me to ...
0
votes
1answer
66 views

Json views not displaying in json format, instead displaying in web view

I created a json view for a CCK. I am trying to display the view on my webpage. The data is rendered as a web page. But i need something like exact json response. Here is the screen shot Please ...
0
votes
1answer
48 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
64 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
130 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
762 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: ...
2
votes
1answer
300 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
70 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
130 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 ...
1
vote
3answers
131 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
235 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
396 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
95 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 ...