Class JSONStringBuilder

java.lang.Object
dev.iahmadgad.json.JSONStringBuilder

public class JSONStringBuilder extends Object
JSONStringBuilder Class.

JSONStringBuilder builds a String for JSONObject to be used or to be written in some file.

Since:
0.3
  • Constructor Details

    • JSONStringBuilder

      protected JSONStringBuilder(JSONObject node, int indentation, int spaceAroundColon)
      The main Constructor which assigns a JSONObject to the JSONStringBuilder.
      Parameters:
      node -
    • JSONStringBuilder

      protected JSONStringBuilder(JSONArray node, int indentation, int spaceAroundColon)
      The main Constructor which assigns a JSONArray to the JSONStringBuilder.
      Parameters:
      node -
  • Method Details

    • getJSONString

      protected String getJSONString()
      Returns The String of the JSONObject or the JSONArray.
      Returns:
      The String of the JSONObject or the JSONArray