com.h3c.util.json

## Class JsonValidator

- java.lang.Object
- - com.h3c.util.json.JsonValidator

-     public class JsonValidator
      extends Object

  A JSON validator utility class.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static String` | `SCHEMA`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `validate(String schemaUri, Reader json, String jsonRoot)` Validate the given json with the given json schema.
    `static void` | `validate(String json, String jsonRoot)` Validate the given json with the given schema.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### SCHEMA

          public static final String SCHEMA

      See Also:
        Constant Field Values

  - ### Method Detail

    - #### validate

          public static void validate(String schemaUri,
                      Reader json,
                      String jsonRoot)

      Validate the given json with the given json schema.
      Parameters:
        `schemaUri` - schema file to validate with
        `json` - JSON text to validate
        `jsonRoot` - root node of JSON text

    - #### validate

          public static void validate(String json,
                      String jsonRoot)

      Validate the given json with the given schema.
      Parameters:
        `json` - JSON text to validate
        `jsonRoot` - root node of JSON text

Copyright © 2014. All Rights Reserved.