Class JSONWriter
java.lang.Object
org.jolokia.json.JSONWriter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidSerialize generic object as JSON intoWriterstatic voidserialize(Collection<Object> collection, Writer writer) static voidSerialize a string-keyed map (includingJSONObject) into aWriterstatic voidserializeAnyMap(Map<Object, Object> map, Writer writer) Serialize any map into aWriter
-
Constructor Details
-
JSONWriter
public JSONWriter()
-
-
Method Details
-
serialize
Serialize a string-keyed map (includingJSONObject) into aWriter- Parameters:
map-writer-- Throws:
IOException
-
serializeAnyMap
Serialize any map into aWriter- Parameters:
map-writer-- Throws:
IOException
-
serialize
- Parameters:
collection-writer-- Throws:
IOException
-
serialize
Serialize generic object as JSON intoWriter- Parameters:
value-writer-- Throws:
IOException
-