Linked Questions

1 vote
1 answer
1k views

Situation: I am building a Web API that queries a database and then returns the results via JSON. There are a couple of columns that are being introduced to the table, but do not have data populated ...
flyingweseal's user avatar
10 votes
2 answers
19k views

I am passing null to JSON.parse() and although the first parameter is documented saying that it should be a string value, it still works to supply null. How come this does not throw an error even ...
Stephan-v's user avatar
  • 20.5k
7 votes
2 answers
36k views

I'm building an application that parses a JSON template and then replaces the values of the objects with new data. My question is what is the standard way to represent empty data in JSON? This is how ...
Austen Stone's user avatar
  • 1,097
16 votes
3 answers
1k views

According to the JSON spec, the correct way to represent a null value is the literal null. If that is the case, why does WCF return an empty response instead of null? Is this a bug or is this ...
Heinzi's user avatar
  • 173k
2 votes
1 answer
5k views

I am not able to get JsonDeserializer to process null values. I have a json file I am reading from where there are just four values for my record type: Case 1, Case 2, *, or null. JsonDeserializer ...
Timothy Clotworthy's user avatar
2 votes
3 answers
1k views

I have a dictionary dict1 from which I want to remove all items where b is null, that means not just the property b, but the whole dictionary. - hosts: localhost gather_facts: false vars: ...
LJS's user avatar
  • 337
6 votes
1 answer
4k views

We are consuming an API and the api is providing xml fields. We have to convert xml to json for our consumers. We have a requirement of showing just what we have got as XML and to display only those ...
Ags 's user avatar
  • 95
0 votes
2 answers
6k views

So I'm having this little generator, the info that get displayed should correspond to what values are populated on the database, the example below is a physical address this.setState({ ...
user avatar
3 votes
1 answer
3k views

I have some code that creates an ISO8601-formatted timestamp but if the incoming date is in an invalid format, the conversion fails. I'd like to know if there's a standard way of representing an ...
Jon Cage's user avatar
  • 37.8k
2 votes
4 answers
1k views

In javascript, we can initialise a variable with {}. What does the "{}" mean? var o = {}; o.getMessage = function () { return 'This is an example'; }; return o;
fotfs's user avatar
  • 1,024
1 vote
3 answers
2k views

Given json: { "name" : {} } I would like to parse it into the following Java object using com.fasterxml.jackson: class MyClass { private String name; } If you try it, you will get: com....
angel's user avatar
  • 77
0 votes
2 answers
658 views

for my Unity game I created a JSON file that holds the speedrun times. The saved times are Timespan strings. When loading the data I parse the strings to Timespan values. When saving the time I save ...
Question3r's user avatar
  • 4,082
-1 votes
1 answer
1k views

I have an ISerializer interface with several different implementations and a simple contract: string Serialize<T>(T data); T Deserialize<T>(string serializedData); One of the ...
snappymcsnap's user avatar
  • 2,113
2 votes
1 answer
748 views

I am using grails 2.3.3 in a development and I'm having a problem working with a 2 dimensional array that has been taken from a json web page. The particular problem occurs when there are null values ...
mikek's user avatar
  • 169
0 votes
1 answer
310 views

I've created a Swagger (on nodejs/express) test API with this specification (only relevant part): ... parameters: - name: name in: query required: true type: string ... But I can call ...
boj's user avatar
  • 11.4k

15 30 50 per page