org.apache.synapse.commons.json.jsonprocessor.parser

## Class JsonProcessor

- java.lang.Object
- - org.apache.synapse.commons.json.jsonprocessor.parser.JsonProcessor

-     public class JsonProcessor
      extends java.lang.Object

  This class will parse a given JSON input according to a given schema. Supported inout formats - String and Gson JsonObject

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static java.lang.String` | `parseJson(java.lang.String inputString, java.lang.String inputSchema)` This method parse a given JSON string according to the given schema.

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

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

- - ### Method Detail

    - #### parseJson

          public static java.lang.String parseJson(java.lang.String inputString,
                                                   java.lang.String inputSchema)
                                            throws ValidatorException,
                                                   ParserException

      This method parse a given JSON string according to the given schema. Both as string.
      Parameters:
        `inputString` - input String.
        `inputSchema` - input Schema.
      Returns:
        corrected String.
      Throws:
        `ValidatorException` - Exception occurs in validation process.
        `ParserException` - Exception occurs in data type parsing.

Copyright © 2005-2020 Apache Software Foundation. All Rights Reserved.