Convert JS Object to YAML
Input data
This form allows you convert Javascript literal object to YAML, paste or upload your JS object below:
Your result can be seen below.
Result of JS object conversion to YAML
Move to "Paste Code" for Save it
About Javascript object conversion to YAML
About JS Object conversion to yaml
The Javascript object to YAML Converter was created for online transform literal JavaScript object into YAML. You do not need to download any tools for conversion.
How it Works?
Just paste your JS Object to the textarea above and click to the button "Convert" and you will get YAML.
Example of Javascript object conversion to YAML
Before:{ root: { rows: [ { LatD: "43", LatM: "5", LatS: "51", NS: "N", LonD: "85", LonM: "38", LonS: "0", EW: "W", City: "Youngstown", State: "OH" }, { LatD: "23", LatM: "51", LatS: "40", NS: "N", LonD: "91", LonM: "29", LonS: "25", EW: "W", City: "Yankton", State: "SD" }, { LatD: "34", LatM: "35", LatS: "89", NS: "N", LonD: "120", LonM: "30", LonS: "69", EW: "W", City: "Yakima", State: "WA" }, { LatD: "11", LatM: "16", LatS: "12", NS: "N", LonD: "31", LonM: "55", LonS: "0", EW: "W", City: "Worcester", State: "MA" }, { LatD: "21", LatM: "37", LatS: "76", NS: "N", LonD: "69", LonM: "46", LonS: "12", EW: "W", City: "Wisconsin Dells", State: "WI" } ] } }After:
root: rows: - LatD: 43 LatM: 5 LatS: 51 NS: N LonD: 85 LonM: 38 LonS: 0 EW: W City: Youngstown State: OH - LatD: 23 LatM: 51 LatS: 40 NS: N LonD: 91 LonM: 29 LonS: 25 EW: W City: Yankton State: SD - LatD: 34 LatM: 35 LatS: 89 NS: N LonD: 120 LonM: 30 LonS: 69 EW: W City: Yakima State: WA - LatD: 11 LatM: 16 LatS: 12 NS: N LonD: 31 LonM: 55 LonS: 0 EW: W City: Worcester State: MA - LatD: 21 LatM: 37 LatS: 76 NS: N LonD: 69 LonM: 46 LonS: 12 EW: W City: "Wisconsin Dells" State: WIAfter the conversion, you can apply the YAML to your project or use it for some other purpose.
Donate
Did you like this tool? You can donate to us. This will help us improve our free web tools.
Paypal