IDL JSON deserialization

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


   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.

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


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 (

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