| Package | Description |
|---|---|
| weka.core.json |
| Modifier and Type | Method and Description |
|---|---|
JSONNode |
JSONNode.addArray(String name)
Adds an array child to the object.
|
JSONNode |
JSONNode.addArrayElement(Object value)
Adds an array element child to the array.
|
JSONNode |
JSONNode.addNull(String name)
Adds a "null" child to the object.
|
JSONNode |
JSONNode.addNullArrayElement()
Adds a null array element child to the array.
|
JSONNode |
JSONNode.addObject(String name)
Adds an object child to the object.
|
JSONNode |
JSONNode.addPrimitive(String name,
Boolean value)
Adds a key-value child to the object.
|
JSONNode |
JSONNode.addPrimitive(String name,
Double value)
Adds a key-value child to the object.
|
JSONNode |
JSONNode.addPrimitive(String name,
Integer value)
Adds a key-value child to the object.
|
JSONNode |
JSONNode.addPrimitive(String name,
String value)
Adds a key-value child to the object.
|
JSONNode |
JSONNode.getChild(String name)
Returns the child with the given name.
|
JSONNode |
Parser.getResult()
Returns the JSON data structure.
|
static JSONNode |
JSONNode.read(Reader reader)
Reads the JSON object from the given reader.
|
static JSONNode |
JSONInstances.toJSON(Instances inst)
Turns the Instances object into a JSON object.
|
| Modifier and Type | Method and Description |
|---|---|
static Instances |
JSONInstances.toHeader(JSONNode json)
Turns a JSON object, if possible, into an Instances object (only header).
|
static Instances |
JSONInstances.toInstances(JSONNode json)
Turns a JSON object, if possible, into an Instances object.
|
Copyright © 2013 University of Waikato, Hamilton, NZ. All Rights Reserved.