Serialization is the process by which an object is converted into a format that can be stored and later retrieved.
0
votes
0answers
10 views
Deserializing more complex JSON with DataContractJsonSerializer
I have a JSON response from Facebook Graph API, that looks like this:
{
"name": "XXXXXX YYYYYYY",
"username": "XXXXXX.YYYYYYY",
"email": "[email protected]",
"location": {
...
0
votes
0answers
10 views
Is it possible to serialize a code configured StructureMap container for later use?
I want to code a series of default StructureMap containers, then if customization is needed I can write them to the StructureMap xml configuration format making it possible to reconfigure and load ...
0
votes
0answers
31 views
C# XML nullable attribute
I'd like to have an enum attribute to be optional.
I guess the way to achieve that would be for it to be nullable.
[XmlAttribute(AttributeName = "action")]
public EAction? Action
{
...
1
vote
1answer
20 views
Got “javax.ejb.EJBException: error unmarshalling arguments java.io.EOFException” when calling an ejb method
I am running an ejb method belongs to a EJB located in weblogic 10.3.6 server. This server is located in a Solaris-10 64bit machine. EJB client is located in Windows XP 32bit machine.
When I am ...
0
votes
0answers
28 views
Exam inquiry about serialization?
I had a Java exam yesterday, and some of the the questions were about serialization. One in particular confused me. Please note that I already had this exam, I already answered this question, and I am ...
-1
votes
1answer
34 views
C# XML several occurrences of a same element
I'm currently reading about serialization and C# attributes related to serialization (XmlRoot, XmlElement, XmlArray, ...).
I want to output something like this:
<root>
...
0
votes
1answer
76 views
How java serialization works internally? [duplicate]
I was reading about Java serialization and came to know that if Serializable interface is implemented then class is serialized.
But Serializable is a marker interface. Then how does JVM know with ...
0
votes
0answers
6 views
Is there a way to avoid jboss-serialization in JBoss5?
I have 2 apps running in JBoss5.
They send data to each other. I added a field to one of the Serializable classes without changing serialVersionUID. This class is still backward compatible according ...
3
votes
1answer
31 views
Why do int keys of a python dict turn into strings when using json.dumps?
According to this conversion table, Python ints get written as JSON numbers when serialized using the JSON module--as I would expect and desire.
I have a dictionary with an integer key and integer ...
0
votes
2answers
22 views
How to exclude class fields from serialization by XmlElement name?
Say we have a class like:
using System;
using System.Xml.Serialization;
namespace XmlEntities {
[XmlRoot("Agent")]
public class RootClass {
private string element_description;
...
0
votes
1answer
19 views
Read XML file into user Perl class using XML::Simple
I have a Perl object containing one scalar and two arrays of hashes.
I am using XML::Simple to save an XML copy of this data structure, but when I try to read in the XML file using XMLin I am getting ...
1
vote
1answer
26 views
DataContract not able to serialize collection members
I have data that is best described as "onion-like" in that each outer layer builds on the one below it. Below you will see a vastly simplified version (mine is several layers deeper but exhibits the ...
0
votes
1answer
30 views
Invalid XML during serialization
I attach this code which WORKED until now, like for a year:
// prepare serializer (XSContent)
XmlSerializer serializer = new XmlSerializer(typeof(XSContent));
using (TextWriter textWriter = new ...
0
votes
0answers
19 views
Rabl for a nested hash of ActiveRecord collections
I have a few ActiveRecord objects like City, Country, State etc. My controller action is like (as a representative example):
def get_data
@data = {
cities: City.limit(2),
countries: ...
4
votes
0answers
31 views
Using streams for creating BSON byte array via Json.NET (for file format)
We need the BSON equivalent to
{
"Header": {
"SubHeader1": {
"Name": "Bond",
"License": 7
},
"SubHeader2": {
"IsActive": true
}
...