Service configuration
YAML input: service: port: 8080 enabled: true
"port": 8080
Convert local YAML configuration data to JSON with line-specific errors and a bounded YAML 1.2 subset.
Use block mappings and lists, plain or quoted scalar values, and JSON-compatible inline arrays and objects. This converter accepts a YAML 1.2 configuration subset and rejects aliases, tags, duplicate or non-string keys, custom directives, multiline block scalars and multiple documents. Quote values that must remain strings.
Read indent levels into lists and maps, resolve supported scalars, then serialize the structure as JSON.
YAML input: service: port: 8080 enabled: true
"port": 8080
YAML input: regions:
- name: italy
active: true
- name: ireland
active: false
"name": "ireland"
YAML input: label: 'build #7' # keep the hash
"label": "build #7"