new JSONUtils()
Class containing utility functions for use with JSON
- Source:
Methods
isJSON(pStr)
checks if pStr is JSON
Parameters:
Name | Type | Description |
---|---|---|
pStr |
pStr |
- Source:
Returns:
false or parsed JSON
stringifyJSON(pObj) → {String}
A custom JSON.stringify() to
- keep the functions as string
- stringify JavaArrays
- stringify undefined as undefined and not as null
Parameters:
Name | Type | Description |
---|---|---|
pObj |
Object | req The object to stringify |
- Source:
Returns:
The stringified string
- Type
- String