public static JsonNode parse ( final String jsonString ) { if ( Strings . isEmpty ( jsonString ) ) { return newObject ( ) ; } try { return createObjectMapper ( ) . readValue ( jsonString , JsonNode . class ) ; } catch ( Throwable e ) { throw new ParseException ( String . format ( "can't parse string [%s]" , jsonString ) , e ) ; } }
Parse a String representing a json and return it as a JsonNode .