public class JSONValidator
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
JSONValidator.Type |
| Modifier and Type | Field and Description |
|---|---|
private char |
firstChar |
private JSONReader |
jsonReader |
private JSONValidator.Type |
type |
private java.lang.Boolean |
validateResult |
| Modifier | Constructor and Description |
|---|---|
private |
JSONValidator(JSONReader jsonReader) |
| Modifier and Type | Method and Description |
|---|---|
static JSONValidator |
from(java.lang.String jsonStr) |
static JSONValidator |
fromUtf8(byte[] jsonBytes) |
JSONValidator.Type |
getType() |
boolean |
validate() |
private JSONReader jsonReader
private java.lang.Boolean validateResult
private JSONValidator.Type type
private char firstChar
private JSONValidator(JSONReader jsonReader)
public static JSONValidator fromUtf8(byte[] jsonBytes)
public static JSONValidator from(java.lang.String jsonStr)
public boolean validate()
public JSONValidator.Type getType()