public class JsonObjectBuilder
extends AbstractInternalObject
Constructor and Description |
---|
JsonObjectBuilder(JavaFormula jf) |
Modifier and Type | Method and Description |
---|---|
JsonObjectBuilder |
add(DbChar name,
DbBigInt value)
Adds a name/Integer pair to the JSON object
|
JsonObjectBuilder |
add(DbChar name,
DbBit value)
Adds a name/Boolean pair to the JSON object
|
JsonObjectBuilder |
add(DbChar name,
DbChar value)
Adds a name/String pair to the JSON object
|
JsonObjectBuilder |
add(DbChar name,
DbDouble value)
Adds a name/Number pair to the JSON object
|
JsonObjectBuilder |
add(DbChar name,
fCurrency value)
Adds a name/Currency pair to the JSON object
|
JsonObjectBuilder |
add(DbChar name,
fJsonArray value)
Adds a name/JsonArray pair to the JSON object
|
JsonObjectBuilder |
add(DbChar name,
fJsonObject value)
Adds a name/JsonObject pair to the JSON object
|
JsonObjectBuilder |
addNull(DbChar name)
Adds a name/NULL pair to the JSON object
|
fJsonObject |
end()
This method must always be called as the last method of creating a JsonObject.
|
fJsonObject |
parse(DbChar s)
Returns a JSON Object that is represented in the input string.
|
JsonObjectBuilder |
start()
This is the first method to call to start building a JsonObjet.
|
public JsonObjectBuilder start()
public JsonObjectBuilder add(DbChar name, DbChar value)
name
- name in the name/value pairvalue
- value in the name/value pairpublic JsonObjectBuilder add(DbChar name, DbBit value)
name
- name in the name/value pairvalue
- value in the name/value pairpublic JsonObjectBuilder add(DbChar name, DbBigInt value)
name
- name in the name/value pairvalue
- value in the name/value pairpublic JsonObjectBuilder add(DbChar name, DbDouble value)
name
- name in the name/value pairvalue
- value in the name/value pairpublic JsonObjectBuilder add(DbChar name, fCurrency value)
name
- name in the name/value pairvalue
- value in the name/value pairpublic JsonObjectBuilder add(DbChar name, fJsonObject value)
name
- name in the name/value pairvalue
- value in the name/value pairpublic JsonObjectBuilder add(DbChar name, fJsonArray value)
name
- name in the name/value pairvalue
- value in the name/value pairpublic JsonObjectBuilder addNull(DbChar name)
name
- name in the name/value pairvalue
- value in the name/value pairpublic fJsonObject end()
public fJsonObject parse(DbChar s)
s
- String,