public class Validator extends Object
Constructor and Description |
---|
Validator() |
Modifier and Type | Method and Description |
---|---|
static void |
validate(JSONTokener x)
Strictly validate the JSON text
|
static void |
validate(String text)
Strictly validate the JSON text
|
public static void validate(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.Copyright © 2015 The Apache Software Foundation. All rights reserved.