Skip to content
Javascript JSON to YAML converter
Pull request Compare This branch is 3 commits behind jeffsu:master.
Latest commit 7aff2b1 Aug 20, 2011 @jeffsu jeffsu Merge branch 'release/0.1.1'
Failed to load latest commit information.
src support for booleans and numbers Aug 20, 2011
test support for booleans and numbers Aug 19, 2011 updating docs Aug 20, 2011


Converts json or simple javascript objects into a yaml format.


Include json2yaml.js (in src directory) via script tag and then run:

var obj  = { hello: 'world', hello2: [ 'hello', 'world' ] };
var yaml = json2yaml(obj);

This outputs

hello: world
  - hello
  - world
Something went wrong with that request. Please try again.