JSON (JavaScript Object Notation) is a 100% textual data interchange format originally inspired by JavaScript objects. It is widely used in RESTful web services. Parsers for JSON exist in nearly all languages, and libraries also exist which can deserialize JSON to native objects or serialize native ...

learn more… | top users | synonyms (3)

0
votes
0answers
2 views

fusionChart is not loading with dynamic data using Json and C#

I have the below code in code behind. protected void Page_Load(object sender, EventArgs e) { hdndata.Value = ShowFusionChart(); } public string ...
0
votes
0answers
6 views

How to add a read/write customRestService to support editing in Dojo DataGrid?

I am trying to develop a Dojo DataGrid that returns a user's documents from the categorized BidsByDriver view and allows them to edit the Priority field in the grid. After getting past the hurdle of ...
1
vote
3answers
11 views

add id and class attributes to ajaxDisplay appendChild

i have this code which works correctly and is giving me the name and price of a product. now i want to add a class and id attribute to each of the entries. tab.innerHTML += ...
0
votes
0answers
16 views

Loop JSON.stringify and Display it on the SELECT

var new_result = JSON.stringify(result); // this is the info of new_result { "1":"Motor-boats : Motor-yachts > 50'", "2":"Motor-boats : Super-yachts > 100'", "3":"Motor-boats : ...
0
votes
1answer
24 views

Object to json convertion format usign serializer

I have the following c# model object public class AddressUserFields { public string number { get; set; } public string street { get; set; } public string apartment { get; set; } ...
0
votes
0answers
13 views

nested json objects dont update / inherit using Json.NET

Using the depreciated System.Json, I get the Result I expect (coming from Javascript): The Child gets a GrandChild and all the Parents know about it... var Parents = new JsonObject(); var ...
0
votes
0answers
8 views

How to improve the error message readability returned from JsError.toFlatJson() in Play framework 2.x?

I have a JSON REST API server built with Play framework v2.3 with scala, and I have controller's action like this for example: def register = Action.async(BodyParsers.parse.json) { implicit request ...
0
votes
0answers
6 views

Accessing an asp.net handler from an android app: HttpContext is null

I have an asp.net web which has a test handler, in which its ProcessRequest method is: public void ProcessRequest(HttpContext context) { String message = ...
-1
votes
0answers
8 views

Adding markers to google maps dynamically using AJAX to fetch JSON

I'm trying to dynamically add markers to a Google Map based on the JSON data that i get from an API. My code looks like this: $(document).ready(function() { function loadScript() { var script = ...
0
votes
1answer
7 views

how to get access token from bitly using password and username?

$.ajax({ url: 'https://api-ssl.bitly.com/oauth/access_token', type: 'POST', contentType: 'application/x-www-form-urlencoded', dataType: 'json', ...
0
votes
0answers
7 views

How can I put this SAPUI5 property in JSON writing (listener property)

I have this variable (oKunde2) and I want to put the attachBrowserEvent as a listener into the sap.ui.commons.Textfield(). But whatever I try it doesnt work. var oKunde2 = new ...
0
votes
2answers
10 views

PHP - Why does the system() method add a header also?

I was creating a php image upload script. The script sends a post request and (should) have received a json response. This is the line for checking mime type. $mimetype = system("file -bi -- ...
0
votes
0answers
21 views

Unable format JSON date object [duplicate]

I am not able to format the date object received by JSON. The object looks like this { "date": 2, "day": 1, "hours": 0, "minutes": 0, "month": 2, "nanos": 0, ...
0
votes
1answer
6 views

OpenUI5 - sap.m.Text issue with displaying JSON string

Is it possible to display a JSON string using sap.m.Text I'm pretty sure it's treating it as a binding due to the structure of the string "{...}" I thought there may be a parameter to disable ...
1
vote
0answers
28 views

Json.net: Merge two json arrays by objects Id

I would like to upset a json array by objects id, for example. let's say I have this json array: [{"Id":"1", "a":"1", "b":"2"}, {"Id":"2", "a":"3", "b":"1"}, {"Id":"3", "a":"5", "b":"1"}] And ...
0
votes
0answers
9 views

isDataSchedulerEnabled():false error while using SyncAdapter with JSON

I'm trying to fetch data from server using JSON and sync adapter. After starting the application it works a couple of times, synchronizing, I get the required data until I get the error in LogCat ...
0
votes
0answers
15 views

Is there an English dictionary available online in XML or JSON format? [on hold]

I'm looking for an English dictionary in JSON and XML formats that I can download. I referred back to this thread, but the links posted there are either APIs or outdated dictionaries. Has anything ...
0
votes
2answers
21 views

How to check a key is exist or not in gson parsing android

I am parsing a json response using gson. However in my case I am getting different response for success and failure. So I am unable to parse the data, because in my utility class I have created ...
0
votes
1answer
11 views

Rails, Grape create custom JSON from collection

I started to learn how to use Grape. I have collection with a lot of attributes and want only some of them. I did something like this: get :all_elements do [ my_collection.each do |element| ...
0
votes
1answer
6 views

build web form consuming JSON file provided

I have to build a web form, consuming the provided JSON file to display a list of items and option buttons. So the content in the file called service.json is { "0": "Dog", "1": "Fish", ...
0
votes
0answers
6 views

Twitter JSON format (older version 2011/2012)

I am have a rather huge collection of tweets that were obtained via the Twitter-API stored in JSON format. I am a bit wondering about the different formatting of the older tweets. For instance tweets ...
0
votes
1answer
17 views

JSON.stringify is ignoring my nested objects

I have a simple javascript object with some device information including last known geolocation (longitude and latitude only). I'm using JSON.stringify to turn this object in to JSON, but the one ...
0
votes
0answers
4 views

getorgchart sourcedata formatting

I keep getting az_null errors when adding a json datasource. I think this is because the ordering of the items getorgchart uses has to be in a specific order and not just correct. Could you plz let ...
2
votes
4answers
31 views

How to create JSON from Query in PHP

I have been looking and trying many different ways to create the JSON below from a postgres table using PHP, but did not work, specially to add the "group". Group should be added when there are ...
0
votes
0answers
10 views

Android JsonObject vs JsonWriter

I need to create a JSON string from my database cursor. I see there are 2 ways to do this using JsonObject and at the end doing toString of it. Or I use JsonWriter and stream it to StringWriter. Which ...
0
votes
1answer
16 views

output specific layers of json file with jquery

I have a json file with the following structure: { "Branch 1": { "name": "Branch 1 Name", "image": "branch1.jpg", "categories": { "category 1": { ...
0
votes
1answer
13 views

extract specific part of API response to JSON object in Javascript

I am trying to interrogate an API response from the Recognize (fashion recognition) API. The data is returned as set out below. I am trying to extract the items of attire from the following object. ...
0
votes
0answers
13 views

How to make Gson parse integer to integer instead of double or float?

I run into a issue that I can't de-serialize a integer of json string. Instead, I got only float(or double?) when came with numbers, which should be a int when it like 12 and a float(or double) when ...
1
vote
0answers
13 views

Object.keys called on non-object with Node.js and MongoDB Stream

I want to retrieve a large JSON chunks from MongoDB using Node.js Here's json in MongoDB: { "nid": "nanodev-0000000015", "unixtime": NumberInt(1416561973), "cpuload": "0.71", "cpucore": ...
0
votes
0answers
11 views

Connect from Hive to HDFS (JSON Files)

I have already built up a hadoop cluster with apache flume to import twitter data, it works fine. Now I wanna start analytics with apache hive on the twitter data. On the web I found following ...
1
vote
0answers
11 views

JSON schema: how to allow empty string for property with numeric type?

In the property definition i need to allow numeric or empty string value, is this expression right for this purpose? "tprice":{"type":["number",{"enum":[""]}]} Library, that i use to validate data ...
0
votes
1answer
15 views

Updating value - SwiftyJSON

I have a json object as below {"level" :{"currentLevel":"1","score":"100"}} I have this json data in my project folder and I am using SwiftyJSON to parse my son and read the values. Everything ...
0
votes
0answers
9 views

using JSON data to fill template in SPA with handlebars

i need to create a Single Page which will work offline on an USB stick. I got some tipps on stackoverflow to use handlebars to solve this problem. I created a page structure with the needed pages. I ...
1
vote
2answers
16 views

Json show data from website display only undefined

Hallo i have problem with JSON to show data on mobile jQuery With console log show everything okay: $.getJSON("http://www.mcaps.at/redesign/api/get_page/?json=get_page&dev=1&id=119%22", ...
0
votes
0answers
5 views

Should logback Markers be used for method names?

I have seen the answers here relating to "what markers are to be used for", (e.g. this one) but just wondering what people's opinion on this potential use-case for Markers. It is common to see ...
0
votes
0answers
19 views

Angularjs - issue with json : Maximum call stack size exceeded

I am trying to delete an object from an array with Angularjs Resource: CommandeDetail.delete({id:commandeDetail.id}); My factory : .factory('CommandeDetail', function ($resource) { ...
-2
votes
2answers
49 views

Can I access all values in NSDictionary from one value for key?

You might not get correct understanding from my question, because I even don't know how to express my scenario in on line. Coming back to my question. I have two web services one gives me products and ...
0
votes
1answer
32 views

How can I get a value from a JSON with a partially field name

I have a JSON with field name which I dont know its exact name. I know that they contain Body and Header (that's it for now). Each of this fields contain a JSONObject. What is the most efficient way ...
0
votes
1answer
30 views

REST does not return alternate chars. Some chars are missing

I am trying to take a string as input from rest client and return json with alternate chars. However, some chars are missing from the string when it returns. On console, all the chars are getting ...
1
vote
0answers
18 views

SwiftyJSON Performance Issues

I'm having serious performance issues parsing JSON with SwiftyJson from our API and populating in core data. The data is downloaded with Alamofire, wich works nicely but parsing the json with ...
0
votes
0answers
12 views

json to java object with gson ( object nested with arraylist )

I want to create a object Checklist with the following JSON. But I think the Arraylist categories isn't created. I do not have an exception the debug console enter into bucle when create the object : ...
0
votes
0answers
10 views

How convert bson string to json string without creating objects using Jackson?

Here is example about using unmarshalling from bson to java class. How to do the same, but instead of java class create json string? (without temporary unmarshalling bson to java object and marshall ...
0
votes
1answer
17 views

Regex Extract [Jmeter]

To make this short: I have a json response, and I need to extract some parameters from it. (Using jmeter, Regular Expression Extractor) json response: ...
0
votes
1answer
14 views

Generate remote XML, and consume from web page, using javascript

I am looking at a scenario where I want to "consume" an xml/json document and build some visual elements from said date. Per example, List of bookings for a time period. Lets say data will contain ...
0
votes
2answers
40 views

JSON push to nested JSON object in javascript

I am new to JSON and I am preparing an JSON object on client side from the response received from server. I want the data looks like below [ {"number" : "456" , "effort" : [{ "effort_type" : ...
0
votes
2answers
18 views

Read datas from JSON array on HTML using JAVASCRIPT

I have a JSON return by a PHP request. The result is: {"serials": {"4": [{"serial":"15990"},{"serial":"16536"}], "16": [{"serial":"13841"}] } } Could you ...
1
vote
0answers
13 views

Calling function in Magento

I know the way to pass a JavaScript variable/function is similar to standard JavaScript in Magento but since this is the first time i am develop a e-commerce system i want to make everything clear to ...
-2
votes
0answers
10 views

how to iterate these json sample in in table

I want to insert these data into Postgres table in table format- how can we find out the object and values to store in data..?? {"glossary": {"title": "example glossary","GlossDiv": {"title": ...
0
votes
0answers
12 views

jQuery getJSON in Yii2 cancels request

I'm using Car Query API in Yii2 and the getJSON request is getting canceled even with "callback=?" (JSONP). Seems like it's conflicting with Yii JavaScript module, but there are no errors in console ...
1
vote
1answer
30 views

Serializing std::list into json with boost ptree

okay, so I am banging my head on this for last couple of days but still I am unable to get it right. I have a std::list container and I want to serialize it into JSON string so that I can send it over ...