Top "Deserialization" questions

Deserialization is the process by which an object is recreated from its serialized state.

GSON and InstanceCreator issue

I have the following POJOs: public interface Shape { public double calcArea(); public double calcPerimeter(); } public class Rectangle implement Shape { // Various …

java reflection deserialization gson type-safety
Deserializing a byte array

If I wanted to fill a structure from a binary file, I would use something like this: using (BinaryReader br = …

c# binary managed deserialization
JSON Deserialization Type is not supported for deserialization of an array

I've read two other posts regarding the deserialization error, but I've not gotten anywhere so I'm posting my own question. …

c# json wcf serialization deserialization
What's the difference between DataContractJsonSerializer and JavaScriptSerializer?

The .NET Framework ships with System.Runtime.Serialization.Json.DataContractJsonSerializer and System.Web.Script.Serialization.JavaScriptSerializer, both of which de/…

c# json serialization deserialization
Serializing groovy map to string with quotes

I'm trying to persist a groovy map to a file. My current attempt is to write the string representation out …

serialization groovy deserialization
Parsing large JSON file in .NET

I have used the "JsonConvert.Deserialize(json)" method of Json.NET so far which worked quite well and to be …

c# json.net deserialization json-deserialization
REST Assured - Generic List deserialization

Let's say I have a Java Person class: class Person { String name; String email; } With REST Assured, you can deserialize …

java arrays json deserialization rest-assured
Ignore parsing errors during JSON.NET data parsing

I have an object with predefined data structure: public class A { public string Id {get;set;} public bool? Enabled {get;…

json error-handling json.net deserialization
What are @JsonTypeInfo and @JsonSubTypes used for in jackson

What are @JsonTypeInfo and @JsonSubTypes annotations using for in jackson ? public class Lion extends Animal { private String name; @JsonCreator public …

java serialization jackson deserialization
Checking if a stream is empty

I am trying to deserialize a XML-file. I need to check if the XML-file stream is empty before tying to …

c# .net stream deserialization