Package com.epimorphics.json
Class JSONSerializer
- java.lang.Object
-
- com.epimorphics.json.JSONSerializer
-
- All Implemented Interfaces:
JSONWritable
public class JSONSerializer extends Object implements JSONWritable
Support output of lists and maps to a JSON stream
-
-
Constructor Summary
Constructors Constructor Description JSONSerializer(List<?> root)JSONSerializer(Map<?,?> root)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidwrite(Object x, JSFullWriter out)voidwriteTo(JSFullWriter out)
-
-
-
Field Detail
-
root
public Object root
-
-
Method Detail
-
writeTo
public void writeTo(JSFullWriter out)
- Specified by:
writeToin interfaceJSONWritable
-
write
protected void write(Object x, JSFullWriter out)
-
-