Top "Deserialization" questions

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

How to serialize/deserialize Kotlin sealed class?

I have a following sealed class: sealed class ViewModel { data class Loaded(val value : String) : ViewModel() object Loading : ViewModel() } How …

json kotlin singleton deserialization genson
Force GSON to use specific constructor

public class UserAction { private final UUID uuid; private String userId; /* more fields, setters and getters here */ public UserAction(){ this.uuid = …

java constructor gson deserialization
Binary stream '0' does not contain a valid BinaryHeader error on deserialization

After searching for an answer to this issue for the last 2 days, I'm hoping someone here can help. I have …

c# deserialization binaryformatter
Convert an int to bool with Json.Net

I am calling a webservice and the returned data for a bool field is either 0 or 1 however with my model …

c#-4.0 json.net deserialization
Swift 4 Codable; How to decode object with single root-level key

I'm using the Swift 4 Codable protocol with JSON data. My data is formatted such that there is a single key …

json swift deserialization swift4 codable
Load File Not working - The magic number in GZip header is not correct

I am attempting to create a Save/Load class that has the option for saving & load files compressed files. …

c# serialization gzip deserialization binaryformatter
Deserializing JSON - how to ignore the root element?

I'm consuming a WCF service that returns JSON results wrapped inside the 'd' root element. The JSON response looks like …

c# .net deserialization json.net
Unserialize PHP data in python

Possible Duplicate: How to read/make sense of a PHP serialised data string in python I'm using python to access …

php python drupal deserialization
Can not deserialize instance of java.util.LinkedHashMap out of START_ARRAY token

Below mentioned is the JSON string, resultString: { "imageMaps": [{ "crc": "c2c4", "flags": "0", "length": "117384", "index": 1, "version": "1.1.90ea", "status": "" }, { "crc": "7601", "flags": "8", "length": "117592", "…

jackson deserialization objectmapper
Generic Java serialization/deserialization using Kryo

I am trying to serialize and deserialize objects of a custom class (say, SomeClass, having a default no-args constructor) to …

java serialization deserialization kryo