Deserialization is the process by which an object is recreated from its serialized state.
Questions tagged [deserialization]
7954 questions
3
votes
1 answer
How to deserialize this xml with repeating XMLNodes
The webresponse i got from a server is shown like this. I am able to deserialze few values. But i dont kow how to convert the Availabilty to an Array.
sold
…

Anand
- 291
- 3
- 13
3
votes
1 answer
Deserializing a null field that previously contained a value when it was serialized
I have read many posts regarding deserialization of nullable fields but have not run across the following scenario:
Serialize an object with a nullable field that contains a value ("nil" attribute is not added to the node because it contains a…

Tim Wilson
- 365
- 3
- 10
3
votes
1 answer
ServiceStack Redis C# slow retrieving data
I'm using Redis Servicestack in C#. Currently, the way I'm storing data is the following:
var listTypedRedis = db.As();
foreach (var obj in myObjects)
{
listTypedRedis.AddItemToList(listTypedRedis.Lists["urn:list"], obj);
}
I…

slee
- 344
- 3
- 5
- 15
3
votes
1 answer
Deserializing child nodes outside of parent's namespace using XmlSerializer.Deserialize() in C#
I have an application that uses namespaces to help deserialize objects stored in XML. The XML namespace is also the C# namespace where the object resides. For example, given the following XML snip:
…

jheddings
- 26,717
- 8
- 52
- 65
3
votes
0 answers
Child node doesn't deserialize to the expect type object, but keep as XmlNode
Here my XSD file:
…

Rick
- 95
- 5
3
votes
1 answer
How to deserialize complex JSON-Objects from a WCF-Service in Android?
I have a REST WCF Service that generate the following JSON.
{
"RecordsUpdateResult":[
{
"ID":115,
"Crud":2,
"Data":{
"__type":"Client:#PIT.Library.AndroidClasses",
"ID":115,
…

GENiALi
- 113
- 1
- 12
3
votes
0 answers
incomplete json payload received at server side in ajax call - asp.net mvc3 / jquery
I am facing a strange issue which happens in some cases but not in regular scenario.
I have an ajax call which sends some data to my controller. In majority cases, the ajax call posts data to controller correctly but the case where it fails…

saarthak
- 1,004
- 2
- 12
- 26
3
votes
2 answers
XStream - how to throw an exception if an annotated field is not present in XML
I have something like this:
Java Class
.....
@XStreamAlias("SOME_TAG")
private String someAttribute;
.....
VALUE
And in my xml i need to have this "SOME_TAG", if for some reason it is missing i…

John
- 41
- 1
- 4
3
votes
0 answers
Deserialization JSON to objects with interface fields using SuperObject
I'm having trouble deserializing an object containing a interface field from json using SuperObject (serialization works fine) on DXE2. Consider the following:
ITest = interface(IInterface)
['{9E5623FF-1BC9-4FFA-919D-80C45EE24F38}']
…

conciliator
- 6,078
- 6
- 41
- 66
3
votes
1 answer
Deserialize SOAP response from webservice without WSDL
I'm trying to write a C# .NET app that can deserialize a SOAP response from a webservice. The webservice (here called 'Wibble') has no WSDL (Grrrrrrr). I have a copy of a complete sample response which I believe I can use to generate intermediate…

growse
- 3,554
- 9
- 43
- 66
3
votes
0 answers
Deserializing an ArrayList. no valid constructor
This how I deserialize my arrayList which contains objects of identification
public void deserializeArrayList(){
String path = "./qbank/IdentificationHARD.quiz";
try{
FileInputStream fileIn = new FileInputStream(path);
…

user962206
- 15,637
- 61
- 177
- 270
3
votes
1 answer
XML Deserialization without a namespace
I'm having a bit of trouble deserializing an XML that doesn't have a namespace. The odd thing is that I'm getting an exception saying "There is an error in XML document (2,2)."; Inner Exception "command_strings xmlns = was not expected.". I'm coding…

Miguel
- 1,157
- 1
- 15
- 28
3
votes
3 answers
Can you deserialize a JSON string to a C# array?
I'm trying to deserialize the JSON string
[{ "key" : "1", "value" : "open"}, {"key" : "2", "value" : "closed"}, {"key" : "3", "value" : "pending"}]
into a C# array. I'm getting the error "No parameterless constructor defined for type of…
user1418084
3
votes
2 answers
Jettison or Kryo
I currently use JAXB for a project i'm working on and looking to convert my libraries archived xml to archived json, To act in my project. I figured I would use Jettison as it seems it would be easier to implement since it actually works with JAXB;…

kdgwill
- 2,129
- 4
- 29
- 46
3
votes
3 answers
How to retain XML string as a string field during XML deserialization
I got an XML input string and want to deserialize it to an object which partially retain the raw XML.
A81D83BC-09A0-4E32-B440-0000033D7AAD
…

detale
- 12,482
- 4
- 41
- 42