code: public static String getJsonFriendlyString(String value) {
  		if (!"null".equals(value) && JSONUtils.mayBeJSON(value)) {
  			return "'" + value + "'";
  		}
  		return value;
  	}
docs: Gets the given value in a form that can be safely put in a {@code JSONObject}.
  <p>
  {@code JSONObject} automatically parses strings that look like JSON arrays/objects, so they need to be processed (quoted)
  to prevent that behaviour.
  
  @param value the value to process.
  @return the value that can be safely put in a {@code JSONObject}.