Package org.json
Class Property
- java.lang.Object
-
- org.json.Property
-
@Deprecated public class Property extends java.lang.ObjectDeprecated.Converts a Property file data into JSONObject and back.
-
-
Constructor Summary
Constructors Constructor Description Property()Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static JSONObjecttoJSONObject(java.util.Properties properties)Deprecated.Converts a property file object into a JSONObject.static java.util.PropertiestoProperties(JSONObject jo)Deprecated.Converts the JSONObject into a property file object.
-
-
-
Method Detail
-
toJSONObject
public static JSONObject toJSONObject(java.util.Properties properties) throws JSONException
Deprecated.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
public static java.util.Properties toProperties(JSONObject jo) throws JSONException
Deprecated.Converts the JSONObject into a property file object.- Parameters:
jo- JSONObject- Returns:
- java.util.Properties
- Throws:
JSONException- if a called function has an error
-
-