Class Validator


  • @Deprecated
    public class Validator
    extends java.lang.Object
    Deprecated.
    Utility class for validating JSON text.
    • Constructor Summary

      Constructors 
      Constructor Description
      Validator()
      Deprecated.
       
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static void validate​(java.lang.String text)
      Deprecated.
      Strictly validate the JSON text
      static void validate​(JSONTokener x)
      Deprecated.
      Strictly validate the JSON text
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Validator

        public Validator()
        Deprecated.
    • Method Detail

      • validate

        public static void validate​(java.lang.String text)
                             throws JSONException
        Deprecated.
        Strictly validate the JSON text
        Parameters:
        text - The text to check.
        Throws:
        JSONException - If the text is not valid.
      • validate

        public static void validate​(JSONTokener x)
                             throws JSONException
        Deprecated.
        Strictly validate the JSON text
        Parameters:
        x - The tokener to check.
        Throws:
        JSONException - If the text is not valid.