|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.sling.commons.json.util.Validator
public class Validator
Utility class for validating JSON text.
| Constructor Summary | |
|---|---|
Validator()
|
|
| Method Summary | |
|---|---|
static void |
validate(JSONTokener x)
Strictly validate the JSON text |
static void |
validate(java.lang.String text)
Strictly validate the JSON text |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Validator()
| Method Detail |
|---|
public static void validate(java.lang.String text)
throws JSONException
text - The text to check.
JSONException - If the text is not valid.
public static void validate(JSONTokener x)
throws JSONException
x - The tokener to check.
JSONException - If the text is not valid.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||