JSON to YAML in Python: 8 Working Recipes
yaml.safe_dump(json.loads(raw)) is the one-line answer to "json to yaml" in Python, and it works...
Tag archive
yaml.safe_dump(json.loads(raw)) is the one-line answer to "json to yaml" in Python, and it works...
JSON.parse turns 1e999 into Infinity, and JSON.stringify writes it back as null. Reproducible examples — and a 10-second test for your own formatter.
Jak uporządkować informacje o tym, co firma rzeczywiście oferuje? Utwórz rejestr usług i kompetencji...
Three ways to get content out of the Framer CMS: a spreadsheet export, a plugin, or typed JSON files from converting the site, and when each one fits.
Almost every script I write ends up needing a few settings: a folder to watch, an API base URL, how...
How Claude Code evaluates allow, ask and deny rules, the syntax mistakes that look valid but never match, and a 19 KB checker I ran today.
![[1,"a",true,null] drafts an empty Root](https://media2.dev.to/dynamic/image/width=1000,height=420,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8xzktuhql4autsgihwmc.png)
I pasted [1,"a",true,null] into the JSON converter. It is valid JSON. The four formats still...

Dev notes: how a cross-promotion list for a dozen Android games moved from the app code to one JSON file on GitHub Pages, with a cache, an offline fallback and strict checks, so a new game needs no updates to the others.
If you send nested e-commerce or billing webhooks (Shopify orders/create, Stripe invoice.paid,...
What an A2A Agent Card has to contain in protocol v1.0, where clients look for it, the v0.3 fields that no longer belong, and a 12 KB checker I ran today.
![[] is valid JSON. CSV still clears the output](https://media2.dev.to/dynamic/image/width=1000,height=420,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fh3f8h0la549ehelid2pj.png)
I pasted [] into the JSON converter and expected one answer. The four formats disagreed. [] is valid...
Quick answer: almost every "invalid JSON" error comes from five habits carried over from JavaScript....