Deserialization is the process by which an object is recreated from its serialized state.
Questions tagged [deserialization]
7954 questions
3
votes
1 answer
Serializing references to other serialized objects
I have two serializable Classes:
[Serializable]
public class Word
{
public List similes;
}
.
[Serializable]
public class Lexicon
{
public List words;
}
both classes are stored as XML files separately, however the XML files…

Nick Udell
- 2,420
- 5
- 44
- 83
3
votes
2 answers
Deserialization throwing ClassNotFoundException for object in object
I'm trying to serialize and deserialize an object, which has a Liferay User object in it (which basically it's a UserImpl). The serialization/deserialization occurs in the API library which is used in other projects.
This is my object:
public class…

DaJackal
- 2,085
- 4
- 32
- 48
3
votes
4 answers
Serialize deserialize anonymous child JSON properties to model
I have an API I am receiving data from. That API is out of my control on how it is structured, and I need to serialize and deserialize the JSON output to map the data to my model.
Everything works well where JSON is nicely formatted with named…

Fuzzybear
- 1,388
- 2
- 25
- 42
3
votes
2 answers
Serialize PHP => Unserialize JAVA / Serialize for php in string format
I have an array in php of this format:
42, "user" => "superman");
echo serialize($value);
?>
Serialized :
a:2:{s:2:"id";i:42;s:4:"user";s:8:"superman";}
I receive this into a String in java.
How I can do for…

VincentLamoute
- 800
- 1
- 9
- 16
3
votes
1 answer
JsConfig.EmitLowercaseUnderscoreNames for deserialization
I need lowercase_underscore_names for my REST client.
JsConfig.EmitLowercaseUnderscoreNames setting works fine only for serialization (JSON).
Now I use DataContract and DataMember attributes to deserialize my models correctly.
But is there any…

griZZZly8
- 694
- 9
- 24
3
votes
1 answer
C# XML deserialization XML inside XML with attributes
Can you deserilize XML ('items') inside another tag ('data') more simple without using another deserilization inside 'Items' get property. Maybe some kind of a attribute on "public Item[] Items".
XML:

sulgpallur
- 63
- 5
3
votes
6 answers
Serialization in C# and de-serialization in Java
Is it possible to serialize the class/object in C# and deserialize the same in java. I want to serialize the class and not any XML/JSON data. Please clarify.
Thanks

Aada
- 1,591
- 7
- 30
- 57
3
votes
2 answers
C#: Deserializing JSON when one field can be different types
I am communicating with an API that returns JSON containing either true, false or an array of string arrays. I wish to deserialize this JSON and store the boolean value, if there is one, in a class field called Success of data type bool, and the…

Maritim
- 2,111
- 4
- 29
- 59
3
votes
1 answer
Deserialize JSON string into Dynamic List in VB.net
I've got the following JSON string which I have retrieved from a webapi:
[{"WorkOrderID":2,"WorkOrderNumber":1},{"WorkOrderID":3,"WorkOrderNumber":3}]
Now I want to know if there is a way I can deserialize this into a list of type dynamic in…

Matt
- 3,305
- 11
- 54
- 98
3
votes
1 answer
maintain Java serialization compatibility when changing type of a single final field
I have this old convenience class for manipulating dates (yyyy-MM-dd). It abstracts away some ugliness of using java.util.Date and Calendar but I want to rewrite it in terms of JodaTime LocalDate. (I won't be changing the interface, just…

Joe Kearney
- 7,397
- 6
- 34
- 45
3
votes
0 answers
Do not deserialize ActiveRecord YAML.load-ing
Given the YAML content similar to:
---
:template: :project_change
:property: !ruby/ActiveRecord:Property
attributes:
id: '99'
name: lorem ipsum 1 dolorem - 101
status: available
How do I make sure that there will be no queries to the…

Dmytrii Nagirniak
- 23,696
- 13
- 75
- 130
3
votes
1 answer
Jackson Default Typing for object containing a field of Map
So I've been trying to get Jackson to serialize/deserialize one object I have which is essentially of the structure:
MyObject {
String a;
Map map;
}
where map can hold nested maps or 'primitive' values (String, Integer,…

Rather Curious
- 53
- 1
- 1
- 5
3
votes
1 answer
How do I deserialize a JSON array using the Play API
I have a string that is a Json array of two objects.
> val ss = """[ {"key1" :"value1"}, {"key2":"value2"}]"""
I want to use the Play Json libraries to deserialize it and create a map from the key values to the objects.
def…

W.P. McNeill
- 16,336
- 12
- 75
- 111
3
votes
1 answer
DataContractJsonSerializer generic list containing element type's subtypes
I'm going to use DataContractJsonSerializer for JSON serialization/deserialization.
I have two object types in the JSON array and want them both to be deserialized into corresponding object types.
Having the following class…

Oybek
- 7,016
- 5
- 29
- 49
3
votes
1 answer
Django REST framework - Serializing and Deserializing a list of primitive types
The task at hand is to use a Serializer to serialize a list of primitive types lets say integers or strings, and then to deserialize this list again. This should be really easy but somehow I cannot quite make it work. I managed to serialize a simple…

evermean
- 1,255
- 21
- 49