Deserialization is the process by which an object is recreated from its serialized state.
Questions tagged [deserialization]
7954 questions
3
votes
1 answer
Pagination with Avro File
I am trying read data from a Avro File file stored in HDFS. Now so far I am able to read the entire data by using DataFileReader or DataFileStream.
Now I want to implement pagination. Is there any specific way to do it ?
I have already gone through…

Pradatta
- 3,000
- 1
- 18
- 22
3
votes
1 answer
Can not deserialize unwrapped list when @JacksonXmlProperty.localName matches @JacksonXmlRootElement.localName
Alright friends... I'm having a hard time wrapping my head around this one. I have an XML document representing a type XmlTest. XmlTest has a property children of type List. children is an unwrapped XML collection.
The issue is that when…

Eric Schoonover
- 47,184
- 49
- 157
- 202
3
votes
1 answer
NullReferenceException in binary deserialization
So I have a Serializable class Student, and I want my ReadFromFile method to deserialize my file so I can know how many records I already have in my object, so that when I want to add new records to my array I can know what's the index of the last…

Lily
- 99
- 1
- 3
- 8
3
votes
2 answers
How to bypass ClassNotFoundException while ObjectInputStream.readObject?
I'm trying to read a serialized Java file containing instances of classes I don't have in my classpath while reading.
Is there a way (perhaps by writing my own ObjectInputStream?) to ignore those ClassNotFoundException and replace the corresponding…

Anthony O.
- 22,041
- 18
- 107
- 163
3
votes
1 answer
Deserialization of MemoryStream via BinaryFormatter
didn't find a solution to following problem.
I had a working code for saving/loading a TreeView in a file but I want to save it to Properties.Settings.Default.
Unfortunately I get the error "no map for object" in this line:
object obj =…

by zero divider
- 35
- 1
- 2
- 5
3
votes
2 answers
Deserialize recursive polymorphic class in GSON
class Complex implements Recursive {
Map map;
...
}
class Simple implements Recursive { ... }
How do I deserialize this json:
{
"type" : "complex",
"map" : {
"a" : {
"type" : "simple"
},
"b" : {
…

Parobay
- 2,549
- 3
- 24
- 36
3
votes
1 answer
Jackson Deserialization with Type Information
I see there are lots of questions here about that, but none of them covers this situation completely i think.
Let's assume that we have a map like
Map myMap;
It can have various type of objects in it, i mean objects can be…

oko
- 1,295
- 1
- 14
- 30
3
votes
1 answer
Data Serialization WPF
Sorry if this question seems silly. I have studied a few web pages on the subject but am unsure how relevant they are to my issue. I have a 2D map designer that i have made. I would like to save the map, so that i can load it and play a game on it.…

user2602079
- 1,283
- 5
- 20
- 39
3
votes
2 answers
How can I persist an array of a nullable value in Protobuf-Net?
I am in the process of migrating from BinaryFormatter to Protobuf-net (which so far appears to offer HUGE improvements both in terms of storage size and deserialization time).
A problem I've encountered however is that double?[] arrays do not…

dereknash
- 155
- 1
- 1
- 6
3
votes
1 answer
Deserializing Jackson by using a key as value
I have a JSON structure similar to this:
"teams": {
"team1Id": "team1Name",
"team2Id": "team2Name"
}
and I would like to deserialize it to these Java classes:
class Teams {
Team team1;
Team team2;
}
class Team {
String id;
String…

andresp
- 1,624
- 19
- 31
3
votes
2 answers
How do I use a Custom JSON.NET Converter in RavenDB to deserialize into types from a dynamic DLL?
My RavenDB objects are created from types in a DLL that is loaded dynamically. I cannot load the DLL into the execution context of the current AppDomain, so the JSON deserializer can't find the types.
How would I use a Custom Converter to use the…

Dr Rob Lang
- 6,659
- 5
- 40
- 60
3
votes
2 answers
3
votes
2 answers
Empty json object instead of null, when no data -> how to deserialize with gson
I am trying to parse json data with Google's gson library. But the json data doesn't behave well.
It does look like this when everything is alright:
{
"parent": {
"child_one": "some String",
"child_two": "4711",
...
…

msal
- 947
- 1
- 9
- 30
3
votes
1 answer
wcf client ignores derived types during deserialization
I'm using a standard wsdl (located here) to communicate with a service (OpenXDS). I created a service reference from it, which generated a very large Reference.cs file. There is a type hierarchy in the file like this:
public partial class…

qanwi1970
- 103
- 7
3
votes
2 answers
Is it possible to serialize transient field of the class using my custom serialization or using Externalization?
Is it possible to serialize transient field of the class using my custom serialization or
using Externalization?
Example: there is a class Person having name field transient
transient String name;
Is it possible to serialize it using below…

Raj
- 692
- 2
- 9
- 23