public class JSONObjectHelper extends GenericJsonConfigurationHelper<org.json.JSONObject>
JSONObject, with JSONPath capabilities.| Constructor and Description |
|---|
JSONObjectHelper(org.json.JSONObject jsonObject)
Creates a new helper for the given
JSONObject. |
| Modifier and Type | Method and Description |
|---|---|
Double |
getDouble(String jsonPath) |
Double |
getMandatoryDouble(String jsonPath) |
getBean, getBoolean, getInteger, getLong, getMandatoryBoolean, getMandatoryInteger, getMandatoryLong, getMandatoryString, getStringpublic JSONObjectHelper(org.json.JSONObject jsonObject)
JSONObject.jsonObject - the JSON object to be setpublic Double getDouble(String jsonPath)
getDouble in interface ConfigurationDataRetriever<org.json.JSONObject>getDouble in class GenericJsonConfigurationHelper<org.json.JSONObject>public Double getMandatoryDouble(String jsonPath)
getMandatoryDouble in interface ConfigurationDataRetriever<org.json.JSONObject>getMandatoryDouble in class GenericJsonConfigurationHelper<org.json.JSONObject>Copyright © 2022. All rights reserved.