Using JSON in JNI

I’m using 2.2.1 and I’m curious if/how we can pass a JSON object from java to c++.

Could I just serialize the json to a jstring and then recieve the char * in C++ and parse it as a JSON object?

I’m using the jansson library.

Thanks!
SSL

For future reference: I referred to the EasyNDK classes and realized it uses a jstring and parses it to JSON.

Hope that helps!

SSL