(String json)
| 7 | public class Json { |
| 8 | |
| 9 | public static JsonElement parse(String json) { |
| 10 | try { |
| 11 | return JsonParser.parseString(json); |
| 12 | } catch (Throwable e) { |
| 13 | return new JsonParser().parse(json); |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | public static JsonObject safeObject(String json) { |
| 18 | try { |
no outgoing calls
no test coverage detected