public class JSONDataLoader extends FileDataLoader
JSONNode
based on a JSON file. The JSON file must contain a single JSON value on the top level,
such as JSON object (like { "a": 1, "b": 2 }
), an array, or even just a string, number, boolean or
null
.args, dataFile, engine
Constructor and Description |
---|
JSONDataLoader() |
Modifier and Type | Method and Description |
---|---|
protected Object |
finalizeResult(Object jsonPOJO)
Converts the POJO created from the JSON to its final form.
|
protected Object |
load(InputStream in)
FileDataLoader subclasess override this method to parse
the file. |
load
protected Object load(InputStream in) throws Exception
FileDataLoader
FileDataLoader
subclasess override this method to parse
the file.load
in class FileDataLoader
Exception