Linked Questions
23 questions linked to/from Do JSON keys need to be unique?
312 votes
12 answers
215k views
Does JSON syntax allow duplicate keys in an object?
Is this valid json? { "a" : "x", "a" : "y" } http://jsonlint.com/ says yes. http://www.json.org/ doesn't say anything about it being forbidden. But ...
0 votes
1 answer
261 views
Set same key value json PHP [duplicate]
I need to communicate with my parser json in my java class to populate a gridview with images. The php code bellow is outputing: {"posts":["http://fisioterapeutacamila.com/iMoveis/img/apto01.jpg", "...
0 votes
1 answer
6k views
Looping through multidimensional array with jQuery
So as the example below show I want to loop through an array inside an jQuery plugin that I'm trying to build. It's not working so can somebody help me with this. $.each(defaults.garage, function(i, ...
2 votes
3 answers
1k views
Why does SBJson JSON parsing only get the last key of interest?
I am using the following JSON: http://www.kb.dk/tekst/mobil/aabningstider_en.json When I try to parse it by the key "location" as such: // get response in the form of a utf-8 encoded json string ...
2 votes
2 answers
1k views
Help parsing simple JSON (using JSON for JAVA ME)
I new to parsing JSON - up until this point, I've been purely XML. Anyways, I am using JSON (Java ME) to parse something with the following structure: {"name" : "JACK","name" : "JILL","name" : "JOHN"...
2 votes
1 answer
1k views
Represent JSON with duplicate keys as a Multimap
I've a JSON with duplicate keys as shown below. { "name": "Test", "attributes": [{ "attributeName": "One", "attributeName": "Two", "...
1 vote
2 answers
545 views
RestTemplate - Jackson Deserializer
I am trying to consume a REST Service using RestTemplate. I am having trouble deserializing the JSON response. I am using a custom Deserializer and my JSON has 3 nodes, but it looks like only one is ...
0 votes
2 answers
309 views
Cannot iterate when parsing HTML table using JSON-VBA
This is an example in JSON view of my users table that i want to parse", inluding an aliasList as the title for each column in the HTML table and the remaining users are below it. {"totalCount":431,"...
2 votes
1 answer
231 views
OrientDB ETL Edge transformer 2 joinFieldName(s)
with one joinFieldName and lookup the Edge transformer works perfect. However, now two keys is required, i.e. compound index in the lookup. How can two joinFieldNames be specified? This is the ...
0 votes
1 answer
414 views
How to expand JSON structure in JAVA
I have a JSON structure, which is small. My requirement is to expand the JSON structure. Example JSON structure : '{ "CallLog":{ "Three":{ "age":100, "name":"...
0 votes
2 answers
102 views
Pulling info from Json data
Problem: I am having trouble pulling some info off ups. The city and state in the shipToAddress section. Below is the data in a easy to read format that i am pulling from ups website with requests: ...
1 vote
1 answer
147 views
JSON Dictionary Duplicate Automatically Eliminated [duplicate]
The problem is that there are multiple revision IDs and it only takes one revision ID no matter how many ever revisions are present. Using Dictionary along with JSON. Need to fetch all revision tags ...
0 votes
2 answers
261 views
JSONObject inserting value to existing key and take the last value
I have a text file in a format of json. Like this: {"a":"1","b":"2"} I may encounter in a situation like this: {"a":"1","b":"2","a":"2"} I read the text and saving it in a string called data and ...
1 vote
1 answer
139 views
Repetitive string replacement
I have a string created from a JSON object as follows { "id" : "112233", "someElement" : [ { "map" : { "123" : [ {..}] }, "map" : { "124" :[ {..}] } }] } ...
0 votes
4 answers
67 views
JSON.parse is removing 2 objects from JSON object
I am currently experiencing this weird issue. I have a valid JSON object just like this: var myjson = '[{"text": {"tag": "question","content": "question content 1"}}, {"text": {"tag": "answer","...