Top "Json-deserialization" questions

JSON deserialization is the process of converting a JSON string into an instance of an object, often a class.

Deserialize complex JSON to Java, classes nested multiple levels deep

I am trying to make the Json output from Cucumber into a single Java object. This contains objects nested four …

java json jackson inner-classes json-deserialization
Jackson deserialization convertValue vs readValue

I have a org.json.JSONArray that contains JSONObjects and I am trying to map those to a POJO. I …

java serialization jackson deserialization json-deserialization
Unable to deserialize the JSON result in C#. Input string is not in a correct format error

I am trying to deserialize a json output to a C# object. JSON result: {"order":{"commission":3.490000,"cost":4.490000,"duration":"day","extended_…

c# json rest json.net json-deserialization
Custom deserializer only for some fields with json.NET

I'm trying to deserialize some JSON: { "a":1, "b":25, "c":"1-7", "obj1":{ "a1":10, "b1":45, "c1":60 }, "obj2":[ { "a2":100, "b2":15, "c2":50 }, { "e2":"1,2,5-7", "…

c# json.net json-deserialization
Rust & Serde JSON deserialization examples?

I'm trying to figure out how to deserialize JSON into a structure using Serde. For instance, the example JSON on …

json rust json-deserialization serde
Populate an existing object with JSON

I populate a class using Json.Net like this: var account = JsonConvert.DeserializeObject<Account>(result.ToString()); The result …

c# json json.net json-deserialization
JSon.Net JObject.FromObject Vs JsonConvert.DeserializeObject<JObject>(JsonConvert.SerializeObject(obj));

I tried looking for the above comparison but couldn't find an answer. As there are multiple ways to get a …

c# json.net json-deserialization
JSON deserialize , Error : null to value type, how to know exact property causing error?

In my C# code, I'm trying to deserialize a JSON with 100s of properties (complex, primitive, derived) and I'm getting …

c# .net json-deserialization javascriptserializer
Json.NET deserialization of Tuple<...> inside another type doesn't work?

Using Json.net, deserializing a type that contains a Tuple<...> doesn't work (serialization works, but deserialization doesn't): [TestMethod] …

c# serialization json.net deserialization json-deserialization