IDL JSON deserialization

1 post / 0 new
Offline
Last seen: 5 years 2 months ago
Joined: 11/20/2014
Posts: 1
Error when creating Java Objects from JSON

Hi,

   We used RTI Connext 5.1.0 -> Utilities -> code generator to create Java classes from IDL. We are able to create JSON from Java objects using GSON, but we were not able to create Java objects from JSON (deserialization) using GSON and Jackson. We are getting error with sequence parameters, below is log trace.

Organization:
2 posts / 0 new
Last post
Offline
Last seen: 6 months 1 week ago
Joined: 01/09/2013
Posts: 10
Serialize/deserialize IDL data structures with JSON

Hi,

I would like to serialize and deserialize data exchanged through DDS with JSON. I found in a document from Gerardo Pardo that let me hope it is easily feasible (http://www.omg.org/news/meetings/GOV-WS/pr/rte-pres/DDS_WebEnabled_RTEW09.pdf).

After generating the Java class from the IDL description, I succeeds in serializing it into JSON format. The deserialization seems more difficult, perhaps due to the use of sequences and embedded substructures.

Do you have examples of Java code to do such a deserialization?

Thanks in advance.

Subscribe to RSS - IDL JSON deserialization