public class Series2JSON
extends java.lang.Object
| Constructor and Description |
|---|
Series2JSON() |
| Modifier and Type | Method and Description |
|---|---|
org.json.JSONArray |
buildJSON(java.util.List<TimeAndCount> list)
prepare JSON array from a time-and-count list
|
org.json.JSONObject |
buildJSON(Series series)
prepare JSON object from a series
|
public org.json.JSONObject buildJSON(Series series)
series - series containing one type of eventspublic org.json.JSONArray buildJSON(java.util.List<TimeAndCount> list)
list - time-and-count list