Class JsonParser

java.lang.Object
org.omegat.util.JsonParser

public final class JsonParser extends 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 merely eval-ing untrusted input. Nashorn Javascript engine is deprecated in Java 11 and removed in Java 15.

See Also: