Package org.jolokia.json
Interface JSONStructure
- All Known Implementing Classes:
JSONArray,JSONObject
public interface JSONStructure
According to JSON Grammar, there are two
structural elements in JSON - objects and arrays. This interface represents both of them.
-
Method Summary
Modifier and TypeMethodDescriptionSerialize given JSON structure to string.voidwriteJSONString(Writer writer) Serialize this JSON structure to aWriter.
-
Method Details
-
toJSONString
String toJSONString()Serialize given JSON structure to string. Can be used for debugging or small JSON data, but streaming the JSON intoWriteris preferred.- Returns:
-
writeJSONString
Serialize this JSON structure to aWriter.- Parameters:
writer-- Throws:
IOException
-