Package com.jme3.plugins.json
Class Json
java.lang.Object
com.jme3.plugins.json.Json
A json parser factory that allows you to set the parser to use.
- Author:
- Riccardo Balbo
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JsonParsercreate()Create a new JsonParser instance.static voidsetParser(Class<? extends JsonParser> clazz) Set the parser to use.
-
Field Details
-
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
Set the parser to use.- Parameters:
clazz- a class that implements JsonParser
-
create
Create a new JsonParser instance.- Returns:
- a new JsonParser instance
-