Parse
Converts raw input into parsed JSON or XML.
Use the Parse policy to convert raw request content into structured JSON or XML so it can be processed by downstream policies.
For more information on the policy parameter descriptions, see DataPower Nano Gateway documentation.
Example of a Parse policy in code view for an LLM provider.
kind: Parse
apiVersion: api.ibm.com/v1
metadata:
name: Parse-p2k4a
namespace: DPNano_Product_LLM_Provider
version: '1.0'
tags: []
domain: ai-platform
labels:
gatewayTypes:
- nano
spec:
documentType:
json: {}
input: request