ptarjan / online-yaml-parser Goto Github PK
View Code? Open in Web Editor NEWA simple online yaml parser
Home Page: http://yaml-online-parser.appspot.com/
A simple online yaml parser
Home Page: http://yaml-online-parser.appspot.com/
Use JavaScript to live syntax-highlight the input YAML and the output JSON, Python, or YAML. The result might look like JS-YAML’s demo page.
I think it should at least be stated on the website that this is using a very old version of PyYAML, seemingly 3.10?
There have been quite some bug fixes since 3.10.
Also as an alternative I can recommend https://play.yaml.io/main/parser for testing many YAML libraries at once.
You need to run a container for this on your machine, but the steps to run it are very easy.
Maybe you could add a link to it?
http://yaml-online-parser.appspot.com/ returns a HTTP 404
Example 11 outputs the following error:
ERROR:
while constructing a mapping
in "<unicode string>", line 1, column 1:
? - Detroit Tigers
^
found unacceptable key (list objects are unhashable)
in "<unicode string>", line 1, column 3:
? - Detroit Tigers
^
Consider below YAML
- just: write some
- yaml:
node1:
type: type1
properties: &node1_prop
role: management
ip_version: ipv4
node2:
type: type2
properties: &node2_prop *node1_prop
requirements:
- dependency: node1
node3:
type: type3
properties: *node2_prop
requirements:
- dependency: node2
Parsing above throws error, while it should be parsed successfully.
Your application is not available at https://yaml-online-parser.appspot.com. It response a HTTP error 500.
Hi there.
Thank you for this very useful tool.
It would be much more useful if you could add line numbers to the code view.
When you get errors, they refer to line numbers and then you have to guess... If you could see the numbers, that would be super!
Thanks.
this
on:
becomes
{
"true": null
}
It crashes on this:
- just: write some
- yaml: |
some
block
text
but not on this. with the space removed before the '|':
- just: write some
- yaml:|
some
block
text
The example on https://yaml-multiline.info/ has a space in it, so it looks like it should be allowed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.