serialization

How to change serialized data into key/value paires efficiently in jQuery?

q=search&title=&post-text=&fkey=12e8c18672ab30ae7977a95f872dc77d&author=&i1l=yaF751&tagnames= ...

When and why JPA entities should implement Serializable interface?

The question is in the title. Below I just described some of my thoughts and findings. When I had very simple domain model (3 tables without any relations) all my entities did NOT implement Serializable. But when domain model became more complex I got RuntimeException which said that one of my entities didn't implement Serializable. I...

Why do I need "field:" in my attribute declaration "[field:NonSerialized]"?

I can't find "field" listed as a C# keyword anywhere. Does anyone know the background on this? ...

WCF objects, multiple IList implementation and serialization errors

Problem: WCF contract objects cannot implement 2 types of lists (ie: List and List). Long-winded explanation: I'm building a WCF service on top of an existing core system, and I'm trying to work out the best way to implement some of my business objects. The core system utilizes interfaces for all business objects - Person management ...

Alternatives to using RFile in Symbian

This question is in continuation to my previous question related to File I/O. I am using RFile to open a file and read/write data to it. Now, my requirement is such that I would have to modify certain fields within the file. I separate each field within a record with a colon and each record with a newline. Sample is below: [email protected]:...

JSON returned from ASP.NET WebService is inadequate

I have constructed several web services that successfully serialize my .NET types into JSON. However, I'm running into an issue getting the JSON to be fully compatible with the YUI library and the DataTable in particular. The YUI DataTable can be fully configured using JSON objects. I created the following struct in .NET to represent a...

Recommendations for persisting data on Android?

There is a web service that provides some data that my app makes use of. This data is fairly large and only changes VERY infrequently so I thought it would be nice if the app could cache it on the SD Card and only update it as needed. Currently I'm grabbing the data (an XML file) and parsing it into an object tree using SAX. This proces...

Why do I get this error in a WebServices project?

I have a ClickOnce app that accesses a bunch of web services. On the client, I have one project that wraps all the web services. In the Properties for that project, if Build/Generate Serialization Assembly is Auto (which is the default), then everything works fine. I set the option to On, it compiles fine, then during runtime I get ...

For WCF, when is it necessary to statically tell a serializer about a data type?

I am using the WCF JSON serializer to produce JSON for use as return data for the ASP.NET MVC framework. I am doing this because the built-in JsonAction does not provide any way to control the naming of public properties in the serialized JSON. public override void ExecuteResult(ControllerContext context) { ... if (Data != null...

DataContractJsonSerializer Compatibility

I have a silverlight control which makes an HttpWebRequest to an HttpHandler on the server side. The request is a post. The body of the post is an object serialized using the DataContractJsonSerializer. The Silverlight control is SL 4.0 Beta and the Handler is .net 4.0 Beta. When i inspect the streams in the silverlight control the seria...

WCF with Message Serialization

Hi, I'm write a simple wcf service that submit request to some gateway to be processed. The request are being executed by executing something like that: I'm writing a WCF service that submit a request to some service which expect to get something like this: gatewayService.SendRequest(request); where gatewayService is the WCF proxy ...

Correct way to use XmlSerialization with frequent serializations

I have a list box that when an item is selected or deselected I want to save the changes to an xml file (so it is always up-to-date on the file and the user does not need a "save" button). While testing I occasionally am hitting this IOException: The process cannot access the file 'C:\MyPath\MyFile.xml' because it is being used by anot...

PHP Omit Variables from Serialization

Is it possible to omit certain variables from serialization? Say I have a temporary variable in a php object that I don't want serialized as it is a waste of space. The only thing I can think of is making them static but this is not ideal as it is not really part of the object which there will be many instances of. This may not even be ...

need of Serializable interface in java? As there are no methods in the interface. and how does it maintain state of an object?

Hi classes which implement serializable interface what exactly they implement as there are no methods in the interface.And how does it help in maintaining state of object across a network. ...

"org.json.JSONArray implements Serializable": What's the best option to achieve this?

I am using Grails Webflow, what ever object I pass to a view, it must be Serialized. My domain models "implement Serializable", so they work. The problem is when I get a response from a WebService. It is of the org.json.JSONArray class. I just want to pass the whole Array over to the view yet it doesn't implement Serializable, so it fa...

simple marshalling unmarshalling objects

Hello Folks, json support is one of the new features of delphi 2009 and delphi 2010. I want to know if it's there any simple function to marshalling/unmarshalling directly between string and object like in superobject library. Example: MyKnownObject := FromJSON('{name:"francis", surname:"lee"}'); ...

save state of a dataGrid: visible columns, columns width and order

I want to save remotely (on a database) the state (visible columns, columns width and order) of a Flex3 DataGrid. For width and visibility I can simply save them by accessing each column attribute.. ugly but possible.. But for the order? Do I have to create the dataGrid dynamically?? Any idea is appreciated thanks ...

Anybody have CSSerializerSection from Jeff Atwood's codinghorror site?

I would like to learn from and possibly use the section serializer that Jeff Attwood posted in his The Last Configuration Section Handler.. Revisited blog posting. But, alas, it appears to have been lost in the great coding horror backup failure. Does anybody have a copy, or similar code that I can learn from or use? ...

Reading data from hard drive into a class

Hello everyone, Every time i try to read a file form the hard drive and cast the data into a structure, i end up with problems of the data not casting properly. Is there a requirement with the reinterpret_cast() function that requires the number of bytes in a structure be a multiple of 4 bytes? If not, what am I doing wrong? If so, how ...

Is it possible to store Python class objects in SQLite?

I would like to store Python objects into a SQLite database. Is that possible? If so what would be some links / examples for it? ...