code: public static void writeJSONKV(String key, Object value, Appendable out, JSONStyle compression) throws IOException {
  		if (key == null)
  			out.append("null");
  		else if (!compression.mustProtectKey(key))
  			out.append(key);
  		else {
  			out.append('"');
  			JSONValue.escape(key, out, compression);
  			out.append('"');
  		}
  		out.append(':');
  		if (value instanceof String)
  			compression.writeString(out, (String) value);
  		else
  			JSONValue.writeJSONString(value, out, compression);
  	}
docs: Write a Key : value entry to a stream