public class JsonFactory extends Object
| Constructor and Description |
|---|
JsonFactory() |
| Modifier and Type | Method and Description |
|---|---|
static JsonArray |
array()
Json array instance factory method.
|
static JsonBoolLiteral |
boolLiteral(boolean value)
Json boolean literal instance factory method.
|
static JsonExpLiteral |
expLiteral(BigDecimal value)
Json exponent literal instance factory method.
|
static JsonFracLiteral |
fracLiteral(BigDecimal value)
Json fractional literal instance factory method.
|
static JsonIntLiteral |
intLiteral(long value)
Json integer literal instance factory method.
|
static JsonNullLiteral |
nullLiteral()
Json null literal instance factory method.
|
static JsonObject |
object()
Json object instance factory method.
|
static JsonLiteral |
parseLiteral(String value)
Parse string value and return identified literal.
|
static JsonStringLiteral |
stringLiteral(String value)
Json string literal instance factory method.
|
public static JsonArray array()
public static JsonObject object()
public static JsonNullLiteral nullLiteral()
public static JsonBoolLiteral boolLiteral(boolean value)
value - internal value for new literal instance.public static JsonExpLiteral expLiteral(BigDecimal value)
value - internal value for new literal instance.public static JsonFracLiteral fracLiteral(BigDecimal value)
value - internal value for new literal instance.public static JsonIntLiteral intLiteral(long value)
value - internal value for new literal instance.public static JsonStringLiteral stringLiteral(String value)
value - internal value for new literal instance.public static JsonLiteral parseLiteral(String value)
value - string representation of literal (like "foo", null, true, 123213, 12.4, 12E-1)Copyright © 2018. All rights reserved.