'use strict';


var yaml = require('../lib/js-yaml');
var object = require('./dumper.json');


console.log(yaml.dump(object, {
  flowLevel: 3,
  styles: {
    '!!int'  : 'hexadecimal',
    '!!null' : 'camelcase'
  }
}));


// Output:
//==============================================================================
// "name": "Wizzard"
// "level": 0x11
// "sanity": Null
// "inventory":
//   - "name": "Hat"
//     "features": ["magic", "pointed"]
//     "traits": {}
//   - "name": "Staff"
//     "features": []
//     "traits": {"damage": 0xA}
//   - "name": "Cloak"
//     "features": ["old"]
//     "traits": {"defence": 0x0, "comfort": 0x3}

@@ -315,36 +315,30 @@
 %0A// 
-%22
 name
-%22
 : 
-%22
 Wizzard
-%22
 %0A// 
-%22
 level
-%22
 : 0x
@@ -347,16 +347,14 @@
 %0A// 
-%22
 sanity
-%22
 : Nu
@@ -359,17 +359,16 @@
 Null%0A// 
-%22
 inventor
@@ -368,17 +368,16 @@
 nventory
-%22
 :%0A//   -
@@ -381,29 +381,25 @@
   - 
-%22
 name
-%22
 : 
-%22
 Hat
-%22
 %0A//     
 %22fea
@@ -390,33 +390,32 @@
  Hat%0A//     
-%22
 features
 %22: %5B%22magic%22,
@@ -406,30 +406,25 @@
 ures
-%22
 : %5B
-%22
 magic
-%22
 , 
-%22
 pointed
-%22
 %5D%0A//
@@ -428,24 +428,22 @@
 %0A//     
-%22
 traits
-%22
 : %7B%7D%0A// 
@@ -450,31 +450,27 @@
   - 
-%22
 name
-%22
 : 
-%22
 Staff
-%22
 %0A//     
 %22fea
@@ -461,33 +461,32 @@
 taff%0A//     
-%22
 features
 %22: %5B%5D%0A//    
@@ -473,17 +473,16 @@
 features
-%22
 : %5B%5D%0A// 
@@ -489,27 +489,23 @@
     
-%22
 traits
-%22
 : %7B
-%22
 damage
-%22
 : 0x
@@ -518,31 +518,27 @@
   - 
-%22
 name
-%22
 : 
-%22
 Cloak
-%22
 %0A//     
 %22fea
@@ -537,17 +537,16 @@
     
-%22
 features
 %22: %5B
@@ -545,17 +545,14 @@
 ures
-%22
 : %5B
-%22
 old
-%22
 %5D%0A//
@@ -560,44 +560,38 @@
     
-%22
 traits
-%22
 : %7B
-%22
 defence
-%22
 : 0x0, 
-%22
 comfort
-%22
 : 0x

Update `dumper` example.