Validate Bedrock JSON against its schema
validate_jsonValidates a behavior or resource pack JSON file against the official schema and returns the JSON pointer, the violated rule and a readable message for every error. Unexpected property names and the valid enum values are included in the message. Run every JSON file you produce through this before handing it to the user.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Document type. A canonical name ("behavior/blocks/blocks"), a short form ("behavior/blocks") or a file path ("BP/blocks/ruby.json") are all accepted. The list of recognised types is in the get_version_info output. | |
| content | Yes | The complete file content as text. Parse errors are reported too. | |
| version | No | Game version under data/, e.g. 1.26.40 or 1.26.40.5. Defaults to the newest available version. Marketing numbers (26.40) are rejected. |