JSON directly from JNI