public class JSONUtils extends Object
Constructor and Description |
---|
JSONUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
jsonDate(Date value) |
static String |
jsonEscape(String value) |
static String |
jsonExpNumber(Double value) |
static String |
jsonFormat(List values) |
static String |
jsonNumber(Double value) |
static String |
jsonNumber(Integer value) |
static String |
jsonNumber(Number value) |
static String |
jsonQuote(String value)
Returns null, if the value is null, or a quoted string otherwise
|
static String |
jsonSanitizeCallback(String functionName)
Used for JSONP callbacks TODO: full name validation
|
public static String jsonQuote(String value)
value
- public static String jsonSanitizeCallback(String functionName)
functionName
- Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.