public static Object jsonToJava ( String json , Map < String , Object > optionalArgs ) { if ( optionalArgs == null ) { optionalArgs = new HashMap < String , Object > ( ) ; optionalArgs . put ( USE_MAPS , false ) ; } if ( ! optionalArgs . containsKey ( USE_MAPS ) ) { optionalArgs . put ( USE_MAPS , false ) ; } JsonReader jr = new JsonReader ( json , optionalArgs ) ; Object obj = jr . readObject ( ) ; jr . close ( ) ; return obj ; }
Convert the passed in JSON string into a Java object graph .