public static org . jmxtrans . agent . util . json . JsonValue parse ( String string ) { if ( string == null ) { throw new NullPointerException ( "string is null" ) ; } DefaultHandler handler = new DefaultHandler ( ) ; new JsonParser ( handler ) . parse ( string ) ; return handler . getValue ( ) ; }
Parses the given input string as JSON . The input must contain a valid JSON value optionally padded with whitespace .