# Class: com.pnfsoftware.jeb.util.encoding.json.JSONObject

A JSON object. Key value pairs are unordered. JSONObject supports java.util.Map interface.

## Constructor: JSONObject


## Constructor: JSONObject
- parameter: `map`, type: `java.util.Map`

Description: Allows creation of a JSONObject from a Map. After that, both the generated JSONObject and the Map can be modified independently.
parameter: map: 

## Method: toJSONString
- return type: `java.lang.String`


## Method: toString
- return type: `java.lang.String`


## Method: writeJSONString
- parameter: `out`, type: `java.io.Writer`


## Static Method: escape
- parameter: `s`, type: `java.lang.String`
- return type: `java.lang.String`

Description: Escape quotes, \\, /, \\r, \\n, \\b, \\f, \\t and other control characters \(U\+0000 through U\+001F\). It's the same as JSONValue.escape\(\) only for compatibility here.
see also: org.json.simple.JSONValue#escape(String)
parameter: s: 
return: 

## Static Method: toJSONString
- parameter: `map`, type: `java.util.Map`
- return type: `java.lang.String`

Description: Convert a map to JSON text. The result is a JSON object. If this map is also a JSONAware, JSONAware specific behaviours will be omitted at this top level.
see also: org.json.simple.JSONValue#toJSONString(Object)
parameter: map: 
return: JSON text, or "null" if map is null.

## Static Method: toString
- parameter: `key`, type: `java.lang.String`
- parameter: `value`, type: `java.lang.Object`
- return type: `java.lang.String`


## Static Method: writeJSONString
- parameter: `map`, type: `java.util.Map`
- parameter: `out`, type: `java.io.Writer`

Description: Encode a map into JSON text and write it to out. If this map is also a JSONAware or JSONStreamAware, JSONAware or JSONStreamAware specific behaviours will be ignored at this top level.
see also: org.json.simple.JSONValue#writeJSONString(Object, Writer)
parameter: map: 
parameter: out: 

