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 |
---|---|
JsonException |
JsonTokener.syntaxError(String message)
Make a JsonException to signal a syntax error.
|
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.
|
JsonWriter |
JsonWriter.array()
Begin appending a new array.
|
void |
JsonTokener.back()
Back up one character.
|
JsonWriter |
JsonWriter.endArray()
End an array.
|
JsonWriter |
JsonWriter.endObject()
End an object.
|
Object |
JsonArray.get(int index)
Get the object value associated with an index.
|
Object |
JsonObject.get(String key)
Get the value object associated with a key.
|
boolean |
JsonArray.getBoolean(int index)
Get the boolean value associated with an index.
|
boolean |
JsonObject.getBoolean(String key)
Get the boolean value associated with a key.
|
double |
JsonArray.getDouble(int index)
Get the double value associated with an index.
|
double |
JsonObject.getDouble(String key)
Get the double value associated with a key.
|
int |
JsonArray.getInt(int index)
Get the int value associated with an index.
|
int |
JsonObject.getInt(String key)
Get the int value associated with a key.
|
JsonArray |
JsonArray.getJsonArray(int index)
Get the JsonArray associated with an index.
|
JsonArray |
JsonObject.getJsonArray(String key)
Get the JsonArray value associated with 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.
|
long |
JsonArray.getLong(int index)
Get the long value associated with an index.
|
long |
JsonObject.getLong(String key)
Get the long value associated with a key.
|
String |
JsonArray.getString(int index)
Get the string associated with an index.
|
String |
JsonObject.getString(String key)
Get the string associated with a key.
|
String |
JsonArray.join(String separator)
Make a string from the contents of this JsonArray.
|
JsonWriter |
JsonWriter.key(String s)
Append a key.
|
boolean |
JsonTokener.more()
Determine if the source string still contains characters that next() can
consume.
|
char |
JsonTokener.next()
Get the next character in the source string.
|
char |
JsonTokener.next(char c)
Consume the next character, and check that it matches a specified
character.
|
String |
JsonTokener.next(int n)
Get the next n characters.
|
char |
JsonTokener.nextClean()
Get the next char in the string, skipping whitespace.
|
String |
JsonTokener.nextString(char quote)
Return the characters up to the next close quote character.
|
String |
JsonTokener.nextTo(char d)
Get the text up but not including the specified character or the end of
line, whichever comes first.
|
String |
JsonTokener.nextTo(String delimiters)
Get the text up but not including one of the specified delimiter characters
or the end of line, whichever comes first.
|
Object |
JsonTokener.nextValue()
Get the next value.
|
static String |
JsonObject.numberToString(Number n)
Produce a string from a Number.
|
JsonWriter |
JsonWriter.object()
Begin appending a new object.
|
JsonArray |
JsonArray.put(double value)
Append a double value.
|
JsonArray |
JsonArray.put(int index,
boolean value)
Put or replace a boolean value in the JsonArray.
|
JsonArray |
JsonArray.put(int index,
Collection<?> value)
Put a value in the JsonArray, where the value will be a JsonArray which is
produced from a Collection.
|
JsonArray |
JsonArray.put(int index,
double value)
Put or replace a double value.
|
JsonArray |
JsonArray.put(int index,
int value)
Put or replace an int value.
|
JsonArray |
JsonArray.put(int index,
long value)
Put or replace a long value.
|
JsonArray |
JsonArray.put(int index,
Map<?,?> value)
Put a value in the JsonArray, where the value will be a JsonObject which is
produced from a Map.
|
JsonArray |
JsonArray.put(int index,
Object value)
Put or replace an object value in the JsonArray.
|
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.
|
char |
JsonTokener.skipTo(char to)
Skip characters until the next character is the requested character.
|
JsonArray |
JsonObject.toJsonArray(JsonArray names)
Produce a JsonArray containing the values of the members of this
JsonObject.
|
JsonObject |
JsonArray.toJsonObject(JsonArray names)
Produce a JsonObject by combining a JsonArray of names with the values of
this JsonArray.
|
String |
JsonArray.toString(int indentFactor)
Make a prettyprinted JSON text of this JsonArray.
|
String |
JsonObject.toString(int indentFactor)
Make a prettyprinted JSON text of this JsonObject.
|
JsonWriter |
JsonWriter.value(boolean b)
Append either the value
true or the value false . |
JsonWriter |
JsonWriter.value(double d)
Append a double value.
|
JsonWriter |
JsonWriter.value(long l)
Append a long value.
|
JsonWriter |
JsonWriter.value(Object o)
Append an object value.
|
Writer |
JsonArray.write(Writer writer)
Write the contents of the JsonArray as JSON text to a writer.
|
Writer |
JsonObject.write(Writer writer)
Write the contents of the JsonObject as JSON text to a writer.
|
Constructor and Description |
---|
JsonArray(JsonTokener x)
Construct a JsonArray from a JsonTokener.
|
JsonArray(Object array)
Construct a JsonArray from an array
|
JsonArray(Object array,
boolean includeSuperClass)
Construct a JsonArray from an array with a bean.
|
JsonArray(String source)
Construct a JsonArray from a source JSON text.
|
JsonObject(JsonObject jo,
String[] names)
Construct a JsonObject from a subset of another JsonObject.
|
JsonObject(JsonTokener x)
Construct a JsonObject from a JsonTokener.
|
JsonObject(String source)
Construct a JsonObject from a source JSON text string.
|
Copyright © 2014. All rights reserved.