Top "Json-deserialization" questions

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

Parse JSON into anonymous object[] using JSON.net

I have a json string that I want to parse into an object[]: { "Thing":"Thing","That":{"Item1":15,"Item2":"Moo","Item3":{"…

c# json json.net json-deserialization
RestSharp JSON Array deserialization

I launch this RestSharp query in JSON format: var response = restClient.Execute<Report>(request); The response I get …

c# restsharp json-deserialization
JSON parse error: Missing a name for object member

I'm new to json and trying to get a basic example working. My http request returns {'username': '1'},{'username': …

c# json json-deserialization
JSON string to Java object with Jackson

This is probably one of those questions where the title says it all. I am quite fascinated by the ObjectMapper's …

java json jackson json-deserialization
Jackson annotation JsonFormat$Value json java.lang.NoSuchMethodError

I am using com.fasterxml.jackson.core:jackson-annotations:2.6.0 in my gradle project. Since adding com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.6.0 to …

java spring jackson json-deserialization zoneddatetime
Jackson - Deserialize nested JSON

I have a JSON string which will be of the following format: { "response": { "execution_status": "ready", "report": { "cache_hit": true, "…

java jackson json-deserialization
How to deserialize a float value with a localized decimal separator with Jackson

The input stream I am parsing with Jackson contains latitude and longitude values such as here: { "name": "product 23", "latitude": "52,48264", "longitude": "13,31822" } …

java jackson json-deserialization decimalformat formatexception
GSON Case-Insensitive Enum Deserialization

I have an enum: enum Type { LIVE, UPCOMING, REPLAY } And some JSON: { "type": "live" } And a class: class Event { Type …

java gson json-deserialization
JSON.NET: How to deserialize interface property based on parent (holder) object value?

I have such classes class Holder { public int ObjType { get; set; } public List<Base> Objects { get; set; } } abstract …

c# asp.net-web-api json.net json-deserialization
CustomDeserializer has no default (no arg) constructor

I am consuming a REST Api with RestTemplate. The response I'm getting from the API has lots of nested objects. …

java spring jackson resttemplate json-deserialization