Class Json

java.lang.Object
com.jme3.plugins.json.Json

public class Json extends Object
A json parser factory that allows you to set the parser to use.
Author:
Riccardo Balbo
  • Field Details

    • PROPERTY_JSON_PARSER_IMPLEMENTATION

      public static final String PROPERTY_JSON_PARSER_IMPLEMENTATION
      The property name to set the parser to use. Should be set automatically by the JmeSystemDelegate. Note: changing this property after the first call to Json.create() will have no effect.
      See Also:
  • Constructor Details

    • Json

      public Json()
  • Method Details

    • setParser

      public static void setParser(Class<? extends JsonParser> clazz)
      Set the parser to use.
      Parameters:
      clazz - a class that implements JsonParser
    • create

      public static JsonParser create()
      Create a new JsonParser instance.
      Returns:
      a new JsonParser instance