[{"data":1,"prerenderedAt":995},["ShallowReactive",2],{"blog-post-en-json-vs-yaml":3,"surround-\u002Fen\u002Fblog\u002Fjson-vs-yaml":988},{"id":4,"title":5,"author":6,"body":7,"category":966,"date":967,"description":968,"draft":969,"extension":970,"h1":14,"image":971,"lastmod":967,"locales":972,"meta":974,"navigation":975,"path":976,"promo":977,"seo":981,"stem":982,"tags":983,"__hash__":987},"blog\u002Fen\u002Fblog\u002Fjson-vs-yaml.md","JSON vs YAML: Key Differences and When to Use Each","JSON Toolbox Team",{"type":8,"value":9,"toc":939},"minimark",[10,15,19,27,30,35,49,60,63,79,83,260,263,273,281,284,288,291,305,319,325,331,346,360,364,401,409,413,439,442,446,449,455,469,475,506,509,513,518,549,556,562,565,569,574,582,587,595,606,614,624,628,644,647,752,776,789,793,797,803,807,810,814,817,821,831,835,838,842,845,849,858,862,871,875,878,882,931,934],[11,12,14],"h1",{"id":13},"json-vs-yaml-when-to-use-each-format","JSON vs YAML: When to Use Each Format",[16,17,18],"p",{},"JSON and YAML encode the same kinds of data — nested mappings, sequences, strings, numbers, booleans, null. You can convert between them mechanically. The difference is who each one is written for.",[16,20,21,22,26],{},"The summary most teams arrive at: ",[23,24,25],"strong",{},"JSON is for machines, YAML is for humans."," JSON dominates APIs, data exchange, and storage because it is fast to parse and has one unambiguous grammar. YAML dominates configuration — Kubernetes, Docker Compose, GitHub Actions, Ansible — because humans edit those files by hand and need comments and less punctuation.",[16,28,29],{},"This guide covers the syntax differences, where YAML's type system goes beyond JSON, when to pick each one, the performance and safety trade-offs, and how to convert in both directions without quietly corrupting your data.",[31,32,34],"h2",{"id":33},"what-is-the-difference-between-json-and-yaml","What is the difference between JSON and YAML?",[16,36,37,40,41,48],{},[23,38,39],{},"JSON"," (JavaScript Object Notation) is a data interchange format defined by ",[42,43,47],"a",{"href":44,"rel":45},"https:\u002F\u002Fwww.rfc-editor.org\u002Frfc\u002Frfc8259",[46],"nofollow","RFC 8259",". Its grammar is tiny, punctuation-based, and identical across implementations. Nearly every language can parse it natively or with a standard-library module.",[16,50,51,54,55,59],{},[23,52,53],{},"YAML"," (YAML Ain't Markup Language) is a human-oriented data serialization language designed for configuration. Structure comes from indentation rather than braces, strings usually need no quotes, and ",[56,57,58],"code",{},"#"," comments are part of the format.",[16,61,62],{},"Two nuances that most comparisons get wrong:",[64,65,66,73],"ol",{},[67,68,69,72],"li",{},[23,70,71],{},"YAML 1.2 is designed to be a superset of JSON",", so a YAML parser can generally read a JSON document. Older YAML 1.1 parsers are less reliable here, and flow-style JSON with duplicate keys can still break, because YAML forbids duplicate keys while JSON permits them (most JSON parsers keep the last one).",[67,74,75,78],{},[23,76,77],{},"Superset in one direction only."," YAML has concepts JSON has no equivalent for — comments, anchors and aliases, multiple documents per file, and extended scalar types. Converting YAML → JSON drops or transforms those.",[31,80,82],{"id":81},"json-vs-yaml-syntax-comparison","JSON vs YAML: syntax comparison",[84,85,86,99],"table",{},[87,88,89],"thead",{},[90,91,92,95,97],"tr",{},[93,94],"th",{},[93,96,39],{},[93,98,53],{},[100,101,102,122,136,149,160,171,182,196,217,231,249],"tbody",{},[90,103,104,108,111],{},[105,106,107],"td",{},"Structure",[105,109,110],{},"Braces, brackets, commas",[105,112,113,114,117,118,121],{},"Indentation and markers (",[56,115,116],{},"-",", ",[56,119,120],{},":",")",[90,123,124,127,130],{},[105,125,126],{},"Whitespace",[105,128,129],{},"Mostly insignificant",[105,131,132,135],{},[23,133,134],{},"Significant"," — indentation defines nesting",[90,137,138,141,144],{},[105,139,140],{},"Comments",[105,142,143],{},"Not supported",[105,145,146],{},[56,147,148],{},"# comment",[90,150,151,154,157],{},[105,152,153],{},"String quoting",[105,155,156],{},"Always double-quoted",[105,158,159],{},"Optional; single, double, or none",[90,161,162,165,168],{},[105,163,164],{},"Keys",[105,166,167],{},"Always quoted",[105,169,170],{},"Unquoted unless special characters are needed",[90,172,173,176,179],{},[105,174,175],{},"Data types",[105,177,178],{},"string, number, boolean, null, object, array",[105,180,181],{},"Same, plus dates\u002Ftimestamps and custom tags",[90,183,184,187,190],{},[105,185,186],{},"Multiple documents",[105,188,189],{},"One value per file",[105,191,192,193],{},"Yes, separated by ",[56,194,195],{},"---",[90,197,198,201,204],{},[105,199,200],{},"Anchors and aliases",[105,202,203],{},"No",[105,205,206,207,117,210,117,213,216],{},"Yes (",[56,208,209],{},"&anchor",[56,211,212],{},"*alias",[56,214,215],{},"\u003C\u003C"," merge)",[90,218,219,222,225],{},[105,220,221],{},"Tabs for indentation",[105,223,224],{},"Allowed (insignificant)",[105,226,227,230],{},[23,228,229],{},"Not allowed"," for indentation",[90,232,233,236,241],{},[105,234,235],{},"File extensions",[105,237,238],{},[56,239,240],{},".json",[105,242,243,117,246],{},[56,244,245],{},".yaml",[56,247,248],{},".yml",[90,250,251,254,257],{},[105,252,253],{},"Typical use",[105,255,256],{},"APIs, data exchange, storage",[105,258,259],{},"Configuration, IaC, CI\u002FCD",[16,261,262],{},"The same data in both:",[264,265,271],"pre",{"className":266,"code":268,"language":269,"meta":270},[267],"language-json","{\n  \"name\": \"Ada\",\n  \"active\": true,\n  \"roles\": [\"admin\", \"editor\"],\n  \"limits\": { \"cpu\": \"500m\", \"memory\": \"512Mi\" }\n}\n","json","",[56,272,268],{"__ignoreMap":270},[264,274,279],{"className":275,"code":277,"language":278,"meta":270},[276],"language-yaml","name: Ada\nactive: true\nroles:\n  - admin\n  - editor\nlimits:\n  cpu: 500m\n  memory: 512Mi\n","yaml",[56,280,277],{"__ignoreMap":270},[16,282,283],{},"The YAML version has no braces, no commas, and no quoted keys — which is exactly why it is pleasant to edit and exactly why it is easy to break.",[31,285,287],{"id":286},"where-yamls-type-system-goes-beyond-json","Where YAML's type system goes beyond JSON",[16,289,290],{},"Three YAML features have no JSON equivalent, and each one changes what a conversion produces.",[16,292,293,296,297,299,300,304],{},[23,294,295],{},"Comments."," YAML has ",[56,298,58],{}," comments; JSON has none. Comments survive a JSON → YAML → JSON round trip only while you stay in YAML. See ",[42,301,303],{"href":302},"\u002Fblog\u002Fjson-comments","Comments in JSON"," for why this matters when a config file is consumed by a strict parser.",[16,306,307,310,311,313,314,318],{},[23,308,309],{},"Multiple documents."," A single YAML file can hold several documents separated by ",[56,312,195],{},". JSON has no equivalent. When the ",[42,315,317],{"href":316},"\u002Ftools\u002Fconvert\u002Fyaml-to-json","YAML to JSON Converter"," meets a multi-document file, it produces a JSON array with one entry per document; a single document becomes an object or array.",[16,320,321,324],{},[23,322,323],{},"Anchors, aliases, and merge keys."," YAML can define a value once and reference it:",[264,326,329],{"className":327,"code":328,"language":278,"meta":270},[276],"defaults: &defaults\n  retries: 3\n  timeout: 30\n\nproduction:\n  \u003C\u003C: *defaults\n  host: api.example.com\n",[56,330,328],{"__ignoreMap":270},[16,332,333,334,337,338,341,342,345],{},"A YAML loader resolves these before you see the data, so converting to JSON produces plain, expanded values — ",[56,335,336],{},"production"," contains ",[56,339,340],{},"retries: 3"," and ",[56,343,344],{},"timeout: 30"," as ordinary fields. The reference is gone, and edits to one copy no longer propagate.",[16,347,348,351,352,355,356,359],{},[23,349,350],{},"Extended scalars."," YAML recognizes dates and timestamps as typed values. JSON has no date type, so a YAML date becomes a string when converted — ",[56,353,354],{},"created: 2026-01-15"," turns into ",[56,357,358],{},"\"2026-01-15T00:00:00.000Z\"",". That is a type change, not a bug, but it matters for anything comparing values downstream.",[31,361,363],{"id":362},"when-to-use-json","When to use JSON",[365,366,367,377,383,389,395],"ul",{},[67,368,369,372,373,376],{},[23,370,371],{},"APIs."," ",[56,374,375],{},"application\u002Fjson"," is the default for REST and most HTTP APIs, on both the request and response side.",[67,378,379,382],{},[23,380,381],{},"Data exchange between services."," Universally parseable, with no indentation to get wrong.",[67,384,385,388],{},[23,386,387],{},"Storage and databases."," Document stores, caches, and message queues all speak JSON.",[67,390,391,394],{},[23,392,393],{},"Anything performance-sensitive."," Native parsing in browsers and runtimes.",[67,396,397,400],{},[23,398,399],{},"Machine-generated data."," Logs, exports, and payloads written by code and never read by humans are safer in a format with one unambiguous grammar.",[16,402,403,404,408],{},"If a file will only ever be read by code, JSON is the low-risk choice. For file basics, see ",[42,405,407],{"href":406},"\u002Fblog\u002Fhow-to-create-json-file","How to Create a JSON File",".",[31,410,412],{"id":411},"when-to-use-yaml","When to use YAML",[365,414,415,421,427,433],{},[67,416,417,420],{},[23,418,419],{},"Configuration humans edit."," Kubernetes manifests, Docker Compose, GitHub Actions, Ansible playbooks, ESLint and Prettier configs.",[67,422,423,426],{},[23,424,425],{},"Infrastructure as Code."," Terraform variables, CloudFormation templates, Helm values.",[67,428,429,432],{},[23,430,431],{},"CI\u002FCD pipelines",", where comments explaining a non-obvious step are worth more than strictness.",[67,434,435,438],{},[23,436,437],{},"Files that need inline documentation."," If the \"why\" belongs next to the setting, YAML's comments are the reason to pick it.",[16,440,441],{},"The trade-off you accept: indentation is significant, tab characters are not allowed for indentation, and a mis-indented block is a valid file with the wrong structure — the parser will not always complain.",[31,443,445],{"id":444},"performance-security-and-version-control","Performance, security, and version control",[16,447,448],{},"These are the dimensions most comparisons skip, and they are where real decisions get made.",[16,450,451,454],{},[23,452,453],{},"Performance."," JSON parsing is typically faster: the grammar is small, and JavaScript runtimes parse it natively. YAML requires a full parser that tracks indentation, resolves anchors, and infers scalar types, which costs more per byte. How much more depends entirely on the parser, the document, and the runtime — so measure your own workload rather than trusting a multiplier. For high-throughput or latency-sensitive paths, JSON is the safer default.",[16,456,457,460,461,464,465,468],{},[23,458,459],{},"Security."," YAML's type system includes tags that some loaders use to construct language-level objects. In Python, ",[56,462,463],{},"yaml.load()"," with the default loader can construct arbitrary Python objects from untrusted input; ",[56,466,467],{},"yaml.safe_load()"," is the correct choice for anything you did not write. Similar unsafe-load APIs have existed in other ecosystems. JSON parsing constructs only data — strings, numbers, booleans, null, objects, arrays — which removes that class of vulnerability. Still validate untrusted input in both cases: parsing is not validation.",[16,470,471,474],{},[23,472,473],{},"Version control."," Both formats have diff quirks, in opposite directions:",[84,476,477,486],{},[87,478,479],{},[90,480,481,483],{},[93,482],{},[93,484,485],{},"In diffs",[100,487,488,497],{},[90,489,490,494],{},[105,491,492],{},[23,493,39],{},[105,495,496],{},"Adding an array item means editing the previous line to add a comma, so a one-item change shows as two changed lines. No comments, so intent must live in the commit message.",[90,498,499,503],{},[105,500,501],{},[23,502,53],{},[105,504,505],{},"Adding an item is a single added line, and comments travel with the change. But indentation carries meaning, so a whitespace change can silently alter structure, and reviewers cannot see the mistake without mentally re-parsing.",[16,507,508],{},"If a file is reviewed frequently by people who are not its author, YAML's comments usually win. If it is generated or consumed only by machines, JSON's explicitness wins.",[31,510,512],{"id":511},"how-to-convert-between-json-and-yaml","How to convert between JSON and YAML",[514,515,517],"h3",{"id":516},"in-the-browser","In the browser",[365,519,520,535],{},[67,521,522,528,529,531,532,534],{},[23,523,524],{},[42,525,527],{"href":526},"\u002Ftools\u002Fconvert\u002Fjson-to-yaml","JSON to YAML"," — paste JSON or open a ",[56,530,240],{}," file, choose the indentation, and copy or download the YAML as ",[56,533,245],{},". It handles nested objects and arrays, renders JSON scalars as YAML-compatible forms, and flags that a value may be read differently by a YAML 1.1 versus a YAML 1.2 parser.",[67,536,537,542,543,545,546,548],{},[23,538,539],{},[42,540,541],{"href":316},"YAML to JSON"," — paste YAML or open a ",[56,544,245],{}," \u002F ",[56,547,248],{}," file and get formatted JSON with two-space, four-space, or minified output. Multi-document files become a JSON array with one entry per document, and invalid YAML is reported with the line and column where parsing stopped instead of producing partial output.",[16,550,551],{},[552,553],"img",{"alt":554,"src":555},"JSON to YAML tool interface","\u002Fblog\u002Fscreenshots\u002Fen\u002Fjson-vs-yaml\u002F01-json-to-yaml.webp",[16,557,558],{},[559,560,561],"em",{},"The JSON to YAML tool.",[16,563,564],{},"Both run in your browser: the file is parsed locally and is not uploaded, which matters when you are converting a Kubernetes manifest or a CI config that contains internal hostnames.",[514,566,568],{"id":567},"from-code","From code",[16,570,571],{},[23,572,573],{},"Python:",[264,575,580],{"className":576,"code":578,"language":579,"meta":270},[577],"language-python","import json\nimport yaml\n\nwith open(\"config.yaml\", \"r\", encoding=\"utf-8\") as f:\n    data = yaml.safe_load(f)          # safe_load, never yaml.load\n\nwith open(\"config.json\", \"w\", encoding=\"utf-8\") as f:\n    json.dump(data, f, indent=2, ensure_ascii=False)\n","python",[56,581,578],{"__ignoreMap":270},[16,583,584],{},[23,585,586],{},"Node.js:",[264,588,593],{"className":589,"code":591,"language":592,"meta":270},[590],"language-js","import yaml from 'js-yaml'\nimport { readFile, writeFile } from 'node:fs\u002Fpromises'\n\nconst docs = yaml.loadAll(await readFile('config.yaml', 'utf8'))\nconst data = docs.length === 1 ? docs[0] : docs   \u002F\u002F loadAll returns one entry per document\n\nawait writeFile('config.json', JSON.stringify(data, null, 2), 'utf8')\n","js",[56,594,591],{"__ignoreMap":270},[16,596,597,600,601,120],{},[23,598,599],{},"Command line",", with ",[42,602,605],{"href":603,"rel":604},"https:\u002F\u002Fgithub.com\u002Fmikefarah\u002Fyq",[46],"yq",[264,607,612],{"className":608,"code":610,"language":611,"meta":270},[609],"language-bash","yq -o=json '.' config.yaml > config.json    # YAML -> JSON\n","bash",[56,613,610],{"__ignoreMap":270},[16,615,616,617,620,621,623],{},"For the other direction, ",[56,618,619],{},"python -c \"import json,yaml,sys; print(yaml.safe_dump(json.load(open(sys.argv[1])), sort_keys=False))\" data.json"," works without extra tooling, and ",[56,622,605],{}," can read JSON input directly since JSON is valid YAML.",[31,625,627],{"id":626},"conversion-pitfalls-what-does-not-survive","Conversion pitfalls: what does not survive",[16,629,630,631,634,635,638,639,634,641,643],{},"Converting JSON → YAML is normally safe: values are quoted when quoting is required, so a string like ",[56,632,633],{},"\"NO\""," or ",[56,636,637],{},"\"1.10\""," comes back as ",[56,640,633],{},[56,642,637],{}," rather than a boolean or a number.",[16,645,646],{},"Converting YAML → JSON is where data changes. Unquoted values are typed by the parser, and JSON has fewer types to hold them:",[84,648,649,662],{},[87,650,651],{},[90,652,653,656,659],{},[93,654,655],{},"YAML input",[93,657,658],{},"Result in JSON",[93,660,661],{},"Why",[100,663,664,679,694,707,727,740],{},[90,665,666,671,676],{},[105,667,668],{},[56,669,670],{},"port: 07",[105,672,673],{},[56,674,675],{},"7",[105,677,678],{},"A leading zero makes it an octal number",[90,680,681,686,691],{},[105,682,683],{},[56,684,685],{},"version: 1.10",[105,687,688],{},[56,689,690],{},"1.1",[105,692,693],{},"Parsed as a number; the trailing zero is lost",[90,695,696,700,704],{},[105,697,698],{},[56,699,354],{},[105,701,702],{},[56,703,358],{},[105,705,706],{},"YAML timestamps have no JSON equivalent, so they become strings",[90,708,709,718,724],{},[105,710,711,714,715],{},[56,712,713],{},"retries: &r 3"," … ",[56,716,717],{},"*r",[105,719,720,723],{},[56,721,722],{},"3"," in every reference",[105,725,726],{},"Aliases are resolved; the reference is gone",[90,728,729,734,737],{},[105,730,731,733],{},[56,732,195],{}," separated documents",[105,735,736],{},"A JSON array of documents",[105,738,739],{},"JSON has no multi-document syntax",[90,741,742,746,749],{},[105,743,744],{},[56,745,148],{},[105,747,748],{},"Dropped",[105,750,751],{},"JSON has no comment syntax",[16,753,754,755,758,759,117,762,117,765,768,769,772,773,775],{},"(The behaviours above are the actual output of this site's converter and ",[56,756,757],{},"js-yaml"," v4. Other parsers and YAML versions differ — some YAML 1.1 parsers also turn unquoted ",[56,760,761],{},"yes",[56,763,764],{},"no",[56,766,767],{},"on",", and ",[56,770,771],{},"off"," into booleans; ",[56,774,757],{}," v4 keeps them as strings.)",[16,777,778,779,372,782,341,785,788],{},"The practical rule: ",[23,780,781],{},"quote anything in YAML that must stay a string.",[56,783,784],{},"port: \"07\"",[56,786,787],{},"version: \"1.10\""," round-trip correctly; the bare values do not.",[31,790,792],{"id":791},"faq","FAQ",[514,794,796],{"id":795},"what-is-the-main-difference-between-json-and-yaml","What is the main difference between JSON and YAML?",[16,798,799,800,802],{},"JSON is a punctuation-based data interchange format aimed at machines — braces, brackets, commas, no comments. YAML is an indentation-based format aimed at humans editing configuration — fewer symbols, optional quotes, and ",[56,801,58],{}," comments. They describe the same shapes of data.",[514,804,806],{"id":805},"is-yaml-a-superset-of-json","Is YAML a superset of JSON?",[16,808,809],{},"YAML 1.2 is designed to be one, so a YAML parser can usually read JSON. It is not perfectly symmetric: YAML forbids duplicate keys while JSON allows them, and YAML 1.1 parsers are less reliable with JSON input. The reverse is not true — YAML has comments, anchors, multiple documents, and typed scalars that JSON cannot express.",[514,811,813],{"id":812},"when-should-i-use-yaml-instead-of-json","When should I use YAML instead of JSON?",[16,815,816],{},"When humans write and maintain the file and you want comments and less punctuation: Kubernetes manifests, Docker Compose, CI\u002FCD pipelines, Ansible, and application configuration. Use JSON when machines are the only readers — APIs, message queues, storage, exports.",[514,818,820],{"id":819},"can-i-convert-json-to-yaml-without-losing-data","Can I convert JSON to YAML without losing data?",[16,822,823,824,827,828,830],{},"Usually yes. Values are quoted when required, so strings that look like numbers or booleans stay strings. The reverse direction is riskier: unquoted YAML values are typed by the parser, so ",[56,825,826],{},"07"," becomes ",[56,829,675],{}," and dates become strings.",[514,832,834],{"id":833},"why-is-yaml-preferred-for-kubernetes-and-cicd","Why is YAML preferred for Kubernetes and CI\u002FCD?",[16,836,837],{},"Those files are written and reviewed by people, often with non-obvious constraints that deserve an inline comment, and YAML's minimal punctuation keeps large manifests readable. The format is also the one those ecosystems standardized on, so tooling expects it.",[514,839,841],{"id":840},"is-yaml-slower-than-json","Is YAML slower than JSON?",[16,843,844],{},"Generally yes — YAML parsing has to track indentation, resolve anchors, and infer types, while JSON has a small grammar and native parsers in most runtimes. The size of the gap depends on the parser, the document, and the runtime, so measure rather than assume.",[514,846,848],{"id":847},"are-there-security-risks-with-yaml","Are there security risks with YAML?",[16,850,851,852,854,855,857],{},"Yes, specifically around unsafe loading. In Python, ",[56,853,463],{}," with the default loader can construct arbitrary objects from untrusted input; use ",[56,856,467],{},". JSON parsing produces only data, which removes that class of risk — but never treat parsing as validation in either format.",[514,859,861],{"id":860},"can-yaml-have-comments","Can YAML have comments?",[16,863,864,865,867,868,870],{},"Yes, with ",[56,866,58],{},". That is one of the main reasons to choose YAML for configuration. JSON has no comment syntax at all; see ",[42,869,303],{"href":302}," for the workarounds.",[514,872,874],{"id":873},"can-yaml-use-tabs-for-indentation","Can YAML use tabs for indentation?",[16,876,877],{},"No. Tabs are not permitted for indentation in YAML — use spaces. This is one of the most common causes of a file that looks correct but fails to parse.",[31,879,881],{"id":880},"whats-next","What's Next?",[365,883,884,894,904,914,923],{},[67,885,886,889,890,634,892,408],{},[23,887,888],{},"Converting a config?"," Use ",[42,891,527],{"href":526},[42,893,541],{"href":316},[67,895,896,899,900,408],{},[23,897,898],{},"Need to inspect the result?"," Open it in the ",[42,901,903],{"href":902},"\u002Ftools\u002Fformat\u002Fjson-editor","JSON Editor",[67,905,906,909,910,408],{},[23,907,908],{},"Choosing between record formats?"," Read ",[42,911,913],{"href":912},"\u002Fblog\u002Fjson-vs-jsonl","JSON vs JSONL",[67,915,916,909,919,408],{},[23,917,918],{},"Optimizing for LLM prompts?",[42,920,922],{"href":921},"\u002Fblog\u002Fjson-vs-toon","JSON vs TOON",[67,924,925,928,929,408],{},[23,926,927],{},"Documenting a JSON payload?"," See ",[42,930,303],{"href":302},[932,933],"hr",{},[16,935,936],{},[559,937,938],{},"All tools on JSON Toolbox run entirely in your browser. Your data never leaves your device.",{"title":270,"searchDepth":940,"depth":940,"links":941},2,[942,943,944,945,946,947,948,953,954,965],{"id":33,"depth":940,"text":34},{"id":81,"depth":940,"text":82},{"id":286,"depth":940,"text":287},{"id":362,"depth":940,"text":363},{"id":411,"depth":940,"text":412},{"id":444,"depth":940,"text":445},{"id":511,"depth":940,"text":512,"children":949},[950,952],{"id":516,"depth":951,"text":517},3,{"id":567,"depth":951,"text":568},{"id":626,"depth":940,"text":627},{"id":791,"depth":940,"text":792,"children":955},[956,957,958,959,960,961,962,963,964],{"id":795,"depth":951,"text":796},{"id":805,"depth":951,"text":806},{"id":812,"depth":951,"text":813},{"id":819,"depth":951,"text":820},{"id":833,"depth":951,"text":834},{"id":840,"depth":951,"text":841},{"id":847,"depth":951,"text":848},{"id":860,"depth":951,"text":861},{"id":873,"depth":951,"text":874},{"id":880,"depth":940,"text":881},"json_tools","2026-09-29T00:00:00.000Z","JSON is for machines, YAML is for humans. Compare syntax, types, comments, performance, and safety, then convert between JSON and YAML in your browser.",false,"md","\u002Fblog\u002Fcover\u002Fen\u002Fjson-vs-yaml-cover.svg",[973],"en",{},true,"\u002Fen\u002Fblog\u002Fjson-vs-yaml",{"slug":978,"text":979,"btn":980},"json-to-yaml","Convert JSON to readable YAML in your browser:","Open JSON to YAML Converter",{"title":5,"description":968},"en\u002Fblog\u002Fjson-vs-yaml",[39,53,984,985,986],"Configuration","Data Format","DevOps","2egB7p8fLdNzdHfGbdLaT8GjIOklcReQsv8nNZOK6tA",[989,992],{"path":990,"title":991},"\u002Fen\u002Fblog\u002Fjson-vs-toon","JSON vs TOON: When a Token-Efficient Format Pays Off",{"path":993,"title":994},"\u002Fen\u002Fblog\u002Fread-json-file-python","How to Read and Write JSON Files in Python",1796356311632]