Package org.omegat.util
Class JsonParser
java.lang.Object
org.omegat.util.JsonParser
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 merely eval-ing
untrusted input.
Nashorn Javascript engine is deprecated in Java 11 and removed in Java 15.
-
Method Summary
-
Method Details
-
parse
Deprecated.- Throws:
Exception
-
quote
Returns a quoted String suitable to use in JSON.
-