String.join() joins the given string elements with the specified delimiter by concatenating them with the delimiter and returns a new string. A collection of strings can also be joined by this method.
JSON-Java offers classes like JSONObject and JSONArray that offer various ways to create Json via overloaded constructors. They can be used to read Json as well.