public class JSONUtils extends Object
| Constructor and Description |
|---|
JSONUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
writeKeyedValues(KeyedValues data)
Returns a string containing the data in JSON format.
|
static void |
writeKeyedValues(KeyedValues data,
Writer writer)
Writes the data in JSON format to the supplied writer.
|
static String |
writeKeyedValues2D(KeyedValues2D data)
Returns a string containing the data in JSON format.
|
static void |
writeKeyedValues2D(KeyedValues2D data,
Writer writer)
Writes the data in JSON format to the supplied writer.
|
public static String writeKeyedValues(KeyedValues data)
[["Key A", 1.0], ["Key B", 2.0]]
PieDataset.data - the data (null not permitted).public static void writeKeyedValues(KeyedValues data, Writer writer) throws IOException
PieDataset.data - the data (null not permitted).writer - the writer (null not permitted).IOException - if there is an I/O problem.public static String writeKeyedValues2D(KeyedValues2D data)
CategoryDataset.data - the data (null not permitted).public static void writeKeyedValues2D(KeyedValues2D data, Writer writer) throws IOException
CategoryDataset.data - the data (null not permitted).writer - the writer (null not permitted).IOException - if there is an I/O problem.Copyright © 2001–2017 JFree.org. All rights reserved.