Package | Description |
---|---|
com.restfb |
Contains types used to interact with the Facebook Graph API and the Legacy Facebook REST API.
|
com.restfb.json |
Repackaging of the json.org reference implementation.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
DefaultJsonMapper.toJavaType(ReflectionUtils.FieldWithAnnotation<Facebook> fieldWithAnnotation,
JsonObject jsonObject,
String facebookFieldName)
Extracts JSON data for a field according to its
Facebook annotation
and returns it converted to the proper Java type. |
Modifier and Type | Method and Description |
---|---|
JsonObject |
JsonObject.accumulate(String key,
Object value)
Accumulate values under a key.
|
JsonObject |
JsonObject.append(String key,
Object value)
Append values to the array under a key.
|
JsonObject |
JsonArray.getJsonObject(int index)
Get the JsonObject associated with an index.
|
JsonObject |
JsonObject.getJsonObject(String key)
Get the JsonObject value associated with a key.
|
JsonObject |
JsonArray.optJsonObject(int index)
Get the optional JsonObject associated with an index.
|
JsonObject |
JsonObject.optJsonObject(String key)
Get an optional JsonObject associated with a key.
|
JsonObject |
JsonObject.put(String key,
boolean value)
Put a key/boolean pair in the JsonObject.
|
JsonObject |
JsonObject.put(String key,
Collection<?> value)
Put a key/value pair in the JsonObject, where the value will be a JsonArray
which is produced from a Collection.
|
JsonObject |
JsonObject.put(String key,
double value)
Put a key/double pair in the JsonObject.
|
JsonObject |
JsonObject.put(String key,
int value)
Put a key/int pair in the JsonObject.
|
JsonObject |
JsonObject.put(String key,
long value)
Put a key/long pair in the JsonObject.
|
JsonObject |
JsonObject.put(String key,
Map<?,?> value)
Put a key/value pair in the JsonObject, where the value will be a
JsonObject which is produced from a Map.
|
JsonObject |
JsonObject.put(String key,
Object value)
Put a key/value pair in the JsonObject.
|
JsonObject |
JsonObject.putOnce(String key,
Object value)
Put a key/value pair in the JsonObject, but only if the key and the value
are both non-null, and only if there is not already a member with that
name.
|
JsonObject |
JsonObject.putOpt(String key,
Object value)
Put a key/value pair in the JsonObject, but only if the key and the value
are both non-null.
|
JsonObject |
JsonArray.toJsonObject(JsonArray names)
Produce a JsonObject by combining a JsonArray of names with the values of
this JsonArray.
|
Modifier and Type | Method and Description |
---|---|
static String[] |
JsonObject.getNames(JsonObject jo)
Get an array of field names from a JsonObject.
|
Constructor and Description |
---|
JsonObject(JsonObject jo,
String[] names)
Construct a JsonObject from a subset of another JsonObject.
|
Copyright © 2014. All rights reserved.