Package org.json
Class Property
java.lang.Object
org.json.Property
Converts a Property file data into JSONObject and back.
- Version:
- 2015-05-05
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JSONObject
toJSONObject
(Properties properties) Converts a property file object into a JSONObject.static Properties
Converts the JSONObject into a property file object.
-
Constructor Details
-
Property
public Property()Constructs a new Property object.
-
-
Method Details
-
toJSONObject
Converts a property file object into a JSONObject. The property file object is a table of name value pairs.- Parameters:
properties
- java.util.Properties- Returns:
- JSONObject
- Throws:
JSONException
- if a called function has an error
-
toProperties
Converts the JSONObject into a property file object.- Parameters:
jo
- JSONObject- Returns:
- java.util.Properties
- Throws:
JSONException
- if a called function has an error
-