Package nz.org.riskscape.engine
Class JsonHelper
java.lang.Object
nz.org.riskscape.engine.JsonHelper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T extends nz.org.riskscape.engine.types.Type>
nz.org.riskscape.engine.types.ValuedeserializeValue
(T type, String json) protected Object
parseJsonString
(String json)
-
Constructor Details
-
JsonHelper
public JsonHelper()
-
-
Method Details
-
deserializeValue
public <T extends nz.org.riskscape.engine.types.Type> nz.org.riskscape.engine.types.Value deserializeValue(T type, String json) throws org.json.JSONException, nz.org.riskscape.engine.types.CoercionException - Throws:
org.json.JSONException
nz.org.riskscape.engine.types.CoercionException
-
parseJsonString
-