views:

62

answers:

2

Hi, Is there any way to convert the JSON response to C/C++ object structure and,convert the those object (C/C++) objects back to java or Objective c.

A: 

Json. Did you visit this website ? It has a list of libraries to do what you need to do.

DumbCoder
A: 

There are tons of libraries for Java side at least; my favorite is Jackson, others like GSON and flex-json also work well. And although many fall for it, I would recommend against using org.json's default lib; it's an old proof-of-concept and is missing most useful things other libs offer.

Note that given that JSON is the interchange format, there need/should not be close coupling between c/c++ libs and java libs; each can and should map data using whatever works best on that platform.

StaxMan