{
  "source": "json.js",
  "method": "stringToJson",
  "input-schema": {
    "type": "object",
    "additionalProperties": false,
    "properties" : {
      "json": {
        "title": "text",
        "type": "string",
        "description": "The string to parse as JSON.",
        "required": true
      },
      "schema": {
        "type": "string",
        "format": "schemachooser",
        "description": "Optional JSON schema to represent the parsed object. If specified, will give structure to the output."
      },
      "validate": {
        "type": "boolean",
        "description": "If set to true, will validate the parsed object against the given JSON schema."
      }
    }
  },
  "output-schema": {
    "type": "any",
    "dynamic": {
      "target": "schema"
    }
  },
  "meta": {
    "name": "parse",
    "description": "Parse a JSON string to an object. Can optionally attach a schema to describe the object."
  }
}
