Class JSONObject
public class JSONObject : JVMBridgeBase<JSONObject>, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBaseInstance>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeBaseInstance, IJVMBridgeDefinition
- Inheritance
-
JSONObject
- Implements
- Extension Methods
Constructors
JSONObject()
public JSONObject()
JSONObject(String)
public JSONObject(String arg0)
Parameters
Exceptions
JSONObject(Map)
public JSONObject(Map arg0)
Parameters
JSONObject(IJVMBridgeBaseInitializer)
Initializer used internally by JCOBridge. Do not use directly.
[Obsolete("This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public JSONObject(IJVMBridgeBaseInitializer initializer)
Parameters
initializerIJVMBridgeBaseInitializer
JSONObject(JSONObject, String[])
public JSONObject(JSONObject arg0, String[] arg1)
Parameters
arg0JSONObjectarg1String[]
Exceptions
JSONObject(JSONTokener)
public JSONObject(JSONTokener arg0)
Parameters
arg0JSONTokener
Exceptions
Properties
BridgeClassName
Java class name to be instantiated
public override string BridgeClassName { get; }
Property Value
IsBridgeAbstract
true if the BridgeClassName is an abstract class, i.e. cannot be created an instance
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
true if the BridgeClassName implements java.lang.AutoCloseable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
true if the BridgeClassName is an interface, i.e. does not have any public constructor
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
true if the BridgeClassName is a static class, i.e. does not have any public constructor
public override bool IsBridgeStatic { get; }
Property Value
NULL
public static object NULL { get; set; }
Property Value
Methods
Accumulate(String, object)
public JSONObject Accumulate(String arg0, object arg1)
Parameters
Returns
Exceptions
Append(String, object)
public JSONObject Append(String arg0, object arg1)
Parameters
Returns
Exceptions
CreatePoolableInstance()
HPA initializer for JSONObject()
public static JSONObject CreatePoolableInstance()
Returns
CreatePoolableInstance(String)
HPA initializer for JSONObject(Java.Lang.String arg0)
public static JSONObject CreatePoolableInstance(String arg0)
Parameters
arg0String
Returns
CreatePoolableInstance(Map)
HPA initializer for JSONObject(Java.Util.Map arg0)
public static JSONObject CreatePoolableInstance(Map arg0)
Parameters
arg0Map
Returns
CreatePoolableInstance(JSONObject, String[])
HPA initializer for JSONObject(Org.Json.JSONObject arg0, Java.Lang.String[] arg1)
public static JSONObject CreatePoolableInstance(JSONObject arg0, String[] arg1)
Parameters
arg0JSONObjectarg1String[]
Returns
CreatePoolableInstance(JSONTokener)
HPA initializer for JSONObject(Org.Json.JSONTokener arg0)
public static JSONObject CreatePoolableInstance(JSONTokener arg0)
Parameters
arg0JSONTokener
Returns
Get(String)
public object Get(String arg0)
Parameters
Returns
Exceptions
GetBoolean(String)
public bool GetBoolean(String arg0)
Parameters
Returns
Exceptions
GetDouble(String)
public double GetDouble(String arg0)
Parameters
Returns
Exceptions
GetInt(String)
public int GetInt(String arg0)
Parameters
Returns
Exceptions
GetJSONArray(String)
public JSONArray GetJSONArray(String arg0)
Parameters
Returns
Exceptions
GetJSONObject(String)
public JSONObject GetJSONObject(String arg0)
Parameters
Returns
Exceptions
GetLong(String)
public long GetLong(String arg0)
Parameters
Returns
Exceptions
GetString(String)
public String GetString(String arg0)
Parameters
Returns
Exceptions
Has(String)
public bool Has(String arg0)
Parameters
Returns
IsNull(String)
public bool IsNull(String arg0)
Parameters
Returns
Keys()
public Iterator<String> Keys()
Returns
Length()
public int Length()
Returns
Names()
public JSONArray Names()
Returns
NumberToString(Number)
public static String NumberToString(Number arg0)
Parameters
Returns
Exceptions
Opt(String)
public object Opt(String arg0)
Parameters
Returns
OptBoolean(String)
public bool OptBoolean(String arg0)
Parameters
Returns
OptBoolean(String, bool)
public bool OptBoolean(String arg0, bool arg1)
Parameters
Returns
OptDouble(String)
public double OptDouble(String arg0)
Parameters
Returns
OptDouble(String, double)
public double OptDouble(String arg0, double arg1)
Parameters
Returns
OptInt(String)
public int OptInt(String arg0)
Parameters
Returns
OptInt(String, int)
public int OptInt(String arg0, int arg1)
Parameters
Returns
OptJSONArray(String)
public JSONArray OptJSONArray(String arg0)
Parameters
Returns
OptJSONObject(String)
public JSONObject OptJSONObject(String arg0)
Parameters
Returns
OptLong(String)
public long OptLong(String arg0)
Parameters
Returns
OptLong(String, long)
public long OptLong(String arg0, long arg1)
Parameters
Returns
OptString(String)
public String OptString(String arg0)
Parameters
Returns
OptString(String, String)
public String OptString(String arg0, String arg1)
Parameters
Returns
Put(String, bool)
public JSONObject Put(String arg0, bool arg1)
Parameters
Returns
Exceptions
Put(String, double)
public JSONObject Put(String arg0, double arg1)
Parameters
Returns
Exceptions
Put(String, int)
public JSONObject Put(String arg0, int arg1)
Parameters
Returns
Exceptions
Put(String, long)
public JSONObject Put(String arg0, long arg1)
Parameters
Returns
Exceptions
Put(String, object)
public JSONObject Put(String arg0, object arg1)
Parameters
Returns
Exceptions
PutOpt(String, object)
public JSONObject PutOpt(String arg0, object arg1)
Parameters
Returns
Exceptions
Quote(String)
public static String Quote(String arg0)
Parameters
Returns
Remove(String)
public object Remove(String arg0)
Parameters
Returns
ToJSONArray(JSONArray)
public JSONArray ToJSONArray(JSONArray arg0)
Parameters
Returns
Exceptions
ToString(int)
public String ToString(int arg0)
Parameters
Returns
Exceptions
Wrap(object)
public static object Wrap(object arg0)