Interested in sponsoring this lovely little spot?

to_json Modifier

Converts any variable into JSON.

stats:
- player: Luke Skywalker
score: 750
- player: Wedge Antilles
score: 688
- player: Jar Jar Binks
score: 1425
{{ stats | to_json }}
[
{"player":"Luke Skywalker","score":750},
{"player":"Wedge Antilles","score":688},
{"player":"Jar Jar Binks","score":1425}
]
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →