Package dev.iahmadgad.json
Class JSONStringBuilder
java.lang.Object
dev.iahmadgad.json.JSONStringBuilder
JSONStringBuilder Class.
JSONStringBuilder builds a String for JSONObject to be used or to be written in some file.
- Since:
- 0.3
-
Constructor Summary
ModifierConstructorDescriptionprotected
JSONStringBuilder
(JSONArray node, int indentation, int spaceAroundColon) The main Constructor which assigns a JSONArray to the JSONStringBuilder.protected
JSONStringBuilder
(JSONObject node, int indentation, int spaceAroundColon) The main Constructor which assigns a JSONObject to the JSONStringBuilder. -
Method Summary
Modifier and TypeMethodDescriptionprotected String
Returns The String of the JSONObject or the JSONArray.
-
Constructor Details
-
JSONStringBuilder
The main Constructor which assigns a JSONObject to the JSONStringBuilder.- Parameters:
node
-
-
JSONStringBuilder
The main Constructor which assigns a JSONArray to the JSONStringBuilder.- Parameters:
node
-
-
-
Method Details
-
getJSONString
Returns The String of the JSONObject or the JSONArray.- Returns:
- The String of the JSONObject or the JSONArray
-