Top "Json-deserialization" questions

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

Using ServiceStack.Text to deserialize a json string to object

I have a JSON string that looks like: "{\"Id\":\"fb1d17c7298c448cb7b91ab7041e9ff6\",\"Name\":\"John\",\"…

c# servicestack anonymous-types json-deserialization servicestack-text
How use jackson ObjectMapper inside custom deserializer?

I try to write custom jackson deserializer. I want "look" at one field and perform auto deserialization to class, see …

java json jackson json-deserialization
Jackson ObjectMapper DeserializationConfig.Feature.ACCEPT_EMPTY_STRING_AS_NULL_OBJECT

I am using Jackson for JSON serialization/deserialization in my Jersey application. I want to read the empty strings in …

java json jackson json-deserialization
System.Text.Json.JsonException: The input does not contain any JSON tokens

I'm just trying to use a Http POST method in a Blazor app through public async Task CreateUnit(UnitEntity unit) { …

json blazor json-deserialization json-serialization
Deserialization of reference types without parameterless constructor is not supported

I have this API public ActionResult AddDocument([FromBody]AddDocumentRequestModel documentRequestModel) { AddDocumentStatus documentState = _documentService.AddDocument(documentRequestModel, DocumentType.OutgoingPosShipment); if (documentState.IsSuccess) …

serialization json-deserialization .net-core-3.0
Swift's JSONDecoder with multiple date formats in a JSON string?

Swift's JSONDecoder offers a dateDecodingStrategy property, which allows us to define how to interpret incoming date strings in accordance with …

swift json-deserialization codable
The JSON value could not be converted to System.DateTime

I have an Employee table public class Employee { [Key] public long ID { get; set; } public DateTime EmpDate { get; set; } public …

c# json asp.net-core-webapi json-deserialization
Deserialize nested object with GSON

I'm trying to deserialize the following structure { meta: { keywords: [a, b, c, d]} ... } other valid structures are { meta: { keywords: "a,…

java gson json-deserialization android
aspnet:MaxJsonDeserializerMembers vs maxRequestLength

I am running into errors like The JSON request was too large to be deserialized.. Quick search on stackoverflow tells …

c# asp.net json asp.net-mvc json-deserialization
Why does this anonymous type not deserialize properly using JsonConvert.DeserializeAnonymousType?

I have the JSON string: {"response":{"token":"{\"token\":\"123\",\"id\":191}"}} And then I have the following code to Deserialize it, but …

c# .net json json.net json-deserialization