tom
tom

Reputation: 5001

Serialization java to c#

I have manged to serialize an arraylist in java using xstream, send it to my c# application via http and then write that to file (just for now).

The serialized data was an arraylist in java. I want to try and re form this arraylist in c# from the xml i have.

I have been looking at http://code.google.com/p/xstream-dot-net/ to do this. Does anyone know if that is the right way to go or is there a better way of reforming the serialized data in c#?

Upvotes: 1

Views: 763

Answers (1)

Zasz
Zasz

Reputation: 12538

I have used JSON.NET (Newtonsoft) on the .NET side and Google's GSON on the java side and it seems to work for Dictionaries, Maps, Sets, Lists, Date, and primitive types with very little configuration involved. Refer to https://github.com/chandru9279/Spikes for it.

Upvotes: 1

Related Questions