@Deprecated public class PiwikJsonObject extends Object
| Constructor and Description |
|---|
PiwikJsonObject()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
String |
get(String key)
Deprecated.
Gets the custom value stored at this custom key.
|
boolean |
isEmpty()
Deprecated.
Returns true if this object contains no custom key-value pairs.
|
String |
put(String key,
String value)
Deprecated.
Puts a custom value at this custom key.
|
String |
remove(String key)
Deprecated.
Removes the custom value stored at this custom key.
|
int |
size()
Deprecated.
Returns the number of custom key-value pairs.
|
String |
toString()
Deprecated.
Produces the JSON string representing this object.
For example, if the following values were put into the object ("key1", "value1") and ("key2", "value2") {"1": ["key1", "value1"], "2": ["key2": "value2"]} would be produced. |
public String get(String key)
key - key used to lookup valuepublic boolean isEmpty()
public String put(String key, String value)
key - key to store value atvalue - value to store at specified keypublic String remove(String key)
key - key used to lookup value to removepublic int size()
public String toString()
("key1", "value1") and ("key2", "value2") {"1": ["key1", "value1"], "2": ["key2": "value2"]} ("key1", "value1"), ("key2", "value2"), and ("key3", "value3")("key2", "value2") was then removed, then{"1": ["key1", "value1"], "2": ["key3": "value3"]} Copyright © 2016. All rights reserved.