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



## Constructor: JSONValue


## 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\).
parameter: s: 
return: 

## Static Method: parse
- parameter: `in`, type: `java.io.Reader`
- return type: `java.lang.Object`

Description: Parse JSON text into java object from the input source. Please use parseWithException\(\) if you don't want to ignore the exception.
see also: org.json.simple.parser.JSONParser#parse(Reader)
see also: #parseWithException(Reader)
parameter: in: 
return: Instance of the following: org.json.simple.JSONObject, org.json.simple.JSONArray,         java.lang.String, java.lang.Number, java.lang.Boolean, null
deprecated: this method may throw an `Error` instead of returning `null`; please             use [JSONValue#parseWithException(Reader)](JSONValue#parseWithException(Reader)) instead

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

Description: Parse JSON text into java object from the given string. Please use parseWithException\(\) if you don't want to ignore the exception.
see also: org.json.simple.parser.JSONParser#parse(Reader)
see also: #parseWithException(Reader)
parameter: s: 
return: Instance of the following: org.json.simple.JSONObject, org.json.simple.JSONArray,         java.lang.String, java.lang.Number, java.lang.Boolean, null
deprecated: this method may throw an `Error` instead of returning `null`; please             use [JSONValue#parseWithException(String)](JSONValue#parseWithException(String)) instead

## Static Method: parseWithException
- parameter: `in`, type: `java.io.Reader`
- return type: `java.lang.Object`

Description: Parse JSON text into java object from the input source.
see also: org.json.simple.parser.JSONParser
parameter: in: 
return: Instance of the following: org.json.simple.JSONObject, org.json.simple.JSONArray,         java.lang.String, java.lang.Number, java.lang.Boolean, null
throws: 
throws: 

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


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

Description: Convert an object to JSON text. 

 If this object is a Map or a List, and it's also a JSONAware, JSONAware will be considered firstly. 

 DO NOT call this method from toJSONString\(\) of a class that implements both JSONAware and Map or List with "this" as the parameter, use JSONObject.toJSONString\(Map\) or JSONArray.toJSONString\(List\) instead.
see also: org.json.simple.JSONObject#toJSONString(Map)
see also: org.json.simple.JSONArray#toJSONString(List)
parameter: value: 
return: JSON text, or "null" if value is null or it's an NaN or an INF number.

## Static Method: writeJSONString
- parameter: `value`, type: `java.lang.Object`
- parameter: `out`, type: `java.io.Writer`

Description: Encode an object into JSON text and write it to out. 

 If this object is a Map or a List, and it's also a JSONStreamAware or a JSONAware, JSONStreamAware or JSONAware will be considered firstly. 

 DO NOT call this method from writeJSONString\(Writer\) of a class that implements both JSONStreamAware and \(Map or List\) with "this" as the first parameter, use JSONObject.writeJSONString\(Map, Writer\) or JSONArray.writeJSONString\(List, Writer\) instead.
see also: org.json.simple.JSONObject#writeJSONString(Map, Writer)
see also: org.json.simple.JSONArray#writeJSONString(List, Writer)
parameter: value: 
parameter: writer: 

