Package org.omegat.util
Class JsonParser
- java.lang.Object
-
- org.omegat.util.JsonParser
-
public final class JsonParser extends java.lang.Object
JsonParser#parse is deprecated. You are recommended to use Jackson for JSON parsing.A thin wrapper around the built-in Nashorn JavaScript engine, providing a convenience method for
Java.asJSONCompatible(JSON.parse(json))
. Use this instead of merelyeval
-ing untrusted input. Nashorn Javascript engine is deprecated in Java 11 and removed in Java 15.
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static java.lang.Object
parse(java.lang.String json)
Deprecated.static java.lang.String
quote(java.lang.String string)
Returns a quoted String suitable to use in JSON.
-