org.firepick
public class JSONResult extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
JSONResult(Object value) |
|
JSONResult(String json)
Parse given JSON string and set current JSON value
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object thatObj) |
JSONResult |
get(int index)
Advance current JSON value to specified element in JSON array.
|
JSONResult |
get(String key)
Advance current JSON value to specified value of current JSON object.
|
Double |
getDouble()
Return a double number for current JSON value, parsing string values as required.
|
Double |
getDouble(Double defaultValue)
Return a double number for current JSON value, parsing string values as required.
|
Integer |
getInt()
Return an integer for current JSON value, parsing string values as required.
|
Integer |
getInt(Integer defaultValue)
Return an integer for current JSON value, parsing string values as required.
|
String |
getString()
Return string value for current JSON value
|
String |
getString(String defaultValue)
Return string value for current JSON value
|
boolean |
isNull()
Return false if current element exists
|
String |
toString() |
protected JSONResult(Object value)
public JSONResult(String json)
JSON - stringpublic JSONResult get(int index)
index - zero-based JSON array indexpublic JSONResult get(String key)
key - element keypublic boolean isNull()
public Integer getInt()
public Integer getInt(Integer defaultValue)
public Double getDouble()
public Double getDouble(Double defaultValue)
public String getString()
Copyright © 2014. All rights reserved.