Parses the specified JSON string into a parse tree @param json JSON text @return a parse tree of JsonElements corresponding to the specified JSON @throws JsonParseException if the specified text is not valid JSON @since 1.3
(String json)
| 41 | * @since 1.3 |
| 42 | */ |
| 43 | public JsonElement parse(String json) throws JsonSyntaxException { |
| 44 | return parse(new StringReader(json)); |
| 45 | } |
| 46 | |
| 47 | /** |
| 48 | * Parses the specified JSON string into a parse tree |