{
  "id": "task_libraries:json/javascript",
  "path": "/exapedia/javascript-json-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "JavaScript JSON libraries",
  "answer": [
    {
      "t": "text",
      "text": "JavaScript JSON libraries parse and serialize JSON beyond what the built-in JSON.parse and JSON.stringify handle. Each one extends that pair in one direction, such as comments in configuration files, sorted keys for stable hashes, or circular references. These libraries read the configuration files, cache keys, and logged objects that apps and developer tools exchange as JSON."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "JavaScript JSON libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#json",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F128"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F129"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F6"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F132"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F130"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#fast-json-stable-stringify",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F143"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F144"
                }
              ],
              [
                {
                  "t": "text",
                  "text": "Not on GitHub"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F147"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F145"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#flatted",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F160"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F161"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F28"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F162"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#parse-json",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F175"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F176"
                }
              ],
              [
                {
                  "t": "text",
                  "text": "Not on GitHub"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F179"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F177"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#json-stable-stringify-without-jsonify",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F192"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ],
              [
                {
                  "t": "text",
                  "text": "Not on GitHub"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F196"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F194"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#ungap-structured-clone",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F209"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F210"
                }
              ],
              [
                {
                  "t": "text",
                  "text": "Not on GitHub"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F213"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F211"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#jsonc-parser",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F227"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F228"
                }
              ],
              [
                {
                  "t": "text",
                  "text": "Not on GitHub"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F231"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F229"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#safe-stable-stringify",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F244"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ],
              [
                {
                  "t": "text",
                  "text": "Not on GitHub"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F248"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F246"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "npm"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#json",
          "label": [
            {
              "t": "fact",
              "fact": "F1"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F129"
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Parses commented input",
            "Deterministic key sorting",
            "Preserves cyclic references"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#json",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F128"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F135"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F136"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F137"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#fast-json-stable-stringify",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F143"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F152"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F153"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F154"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#flatted",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F160"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F167"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F168"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F169"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#parse-json",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F175"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F184"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F185"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F186"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#json-stable-stringify-without-jsonify",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F192"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F201"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F202"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F203"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#ungap-structured-clone",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F209"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F218"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F219"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F220"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#jsonc-parser",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F227"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F236"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F237"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F238"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#safe-stable-stringify",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F244"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F253"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F254"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F255"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "json",
          "name": [
            {
              "t": "fact",
              "fact": "F128"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/json5/json5"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/json5"
            },
            {
              "label": "Docs",
              "href": "https://cdn.jsdelivr.net/npm/json5@2.2.3/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F10"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F129"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F6"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F131"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F130"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/json5@2.2.3/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F128"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F11"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F12"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F13"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F141"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F142"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/react/react",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F141"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "export function parseConfigOverrides(configOverrides: string): any {\n  const trimmed = configOverrides.trim();\n  if (!trimmed) {\n    return {};\n  }\n  return JSON5.parse(trimmed);\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/react/react/blob/1cd5eb8e0edb0b3a1ba33de9c886d91627f8b5ac/compiler/apps/playground/lib/compilation.ts#L172-L178",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F140"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20TypeScript%20applications%20using%20json5%20for%20configuration%20parsing%20circular%20serialization%20exact%20numeric%20JSON%20and%20schema%20based%20output&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F128"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "const JSON5 = require('json5');\n\nconst config = JSON5.parse('{ enabled: true, }');\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/json5@2.2.3/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F133"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "fast-json-stable-stringify",
          "name": [
            {
              "t": "fact",
              "fact": "F143"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/epoberezkin/fast-json-stable-stringify"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/fast-json-stable-stringify"
            },
            {
              "label": "Docs",
              "href": "https://cdn.jsdelivr.net/npm/fast-json-stable-stringify@2.1.0/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F261"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F144"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F146"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F145"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/fast-json-stable-stringify@2.1.0/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F143"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F262"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F263"
                }
              ]
            }
          ],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F158"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F159"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/comet-ml/opik",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F158"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "async contentHash(): Promise<string> {\n  const content: Record<string, unknown> = { ...this.getContent() };\n\n  if (this.evaluators && this.evaluators.length > 0) {\n    content[\"evaluators\"] = this.evaluators;\n  }\n\n  if (\n    this.executionPolicy &&\n    Object.keys(this.executionPolicy).length > 0\n  ) {\n    content[\"executionPolicy\"] = this.executionPolicy;\n  }\n\n  // Use fast-json-stable-stringify for deterministic JSON\n  const json = stringify(content);\n\n  // Use xxhash32 with a seed value for hashing\n  const hashFn = await initHashApi();\n  const hash = hashFn.h32(json, 0xabcd).toString(16);\n\n  return hash;\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/comet-ml/opik/blob/09b3d10b794cdc2524a7524458d4c1e5930ba023/sdks/typescript/src/opik/dataset/DatasetItem.ts#L77-L99",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F157"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=fast-json-stable-stringify%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F143"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "const stringify = require('fast-json-stable-stringify');\n\nconst text = stringify({ b: 2, a: 1 });\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/fast-json-stable-stringify@2.1.0/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F148"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "flatted",
          "name": [
            {
              "t": "fact",
              "fact": "F160"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/WebReflection/flatted"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/flatted"
            },
            {
              "label": "Docs",
              "href": "https://cdn.jsdelivr.net/npm/flatted@3.4.4/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F32"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F161"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F28"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F163"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F162"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/flatted@3.4.4/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F160"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F33"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F34"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F35"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F36"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F37"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F38"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F39"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F40"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F173"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F174"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/devhubapp/devhub",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F173"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "export function useWhyDidYouUpdate(\n  name: string,\n  props: Record<string, any>,\n  {\n    onChangeFound,\n    onNoChangeFound,\n  }: {\n    onChangeFound?: (data: {\n      changesObj: Record<\n        string,\n        { from: any; to: any; isDeepEqual: boolean; changedKeys?: string[] }\n      >\n    }) => void\n    onNoChangeFound?: () => void\n  } = {},\n) {\n  const latestProps = useRef(props)\n\n  useEffect(() => {\n    if (!__DEV__) return\n\n    const allKeys = Object.keys({ ...latestProps.current, ...props })\n\n    const changesObj: Record<\n      string,\n      { from: any; to: any; isDeepEqual: boolean; changedKeys?: string[] }\n    > = {}\n    allKeys.forEach((key) => {\n      if (latestProps.current[key] !== props[key]) {\n        changesObj[key] = {\n          from: latestProps.current[key],\n          to: props[key],\n          changedKeys:\n            props[key] && typeof props[key] === 'object'\n              ? Object.keys(latestProps.current[key])\n                  .map((k) =>\n                    latestProps.current[key][k] === props[key][k] ? '' : k,\n                  )\n                  .filter(Boolean)\n              : undefined,\n          isDeepEqual: _.isEqual(latestProps.current[key], props[key]),\n        }\n      }\n    })\n\n    if (Object.keys(changesObj).length) {\n      if (onChangeFound) {\n        onChangeFound({ changesObj })\n      } else {\n        // eslint-disable-next-line no-console\n        console.log('[why-did-you-update]', name, {\n          changes: flatted.parse(flatted.stringify(changesObj)),\n          props: { from: latestProps.current, to: props },\n        })\n      }\n    } else if (onNoChangeFound) {\n      onNoChangeFound()\n    }\n\n    latestProps.current = props\n  })\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/devhubapp/devhub/blob/1d0d66a388245b43582b3f478846b1c470dd88a3/packages/components/src/hooks/use-why-did-you-update.ts#L23-L84",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F172"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20TypeScript%20applications%20using%20flatted%20for%20configuration%20parsing%20circular%20serialization%20exact%20numeric%20JSON%20and%20schema%20based%20output&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F160"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "const { stringify } = require('flatted');\n\nconst value = {};\nvalue.self = value;\nconst text = stringify(value);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/flatted@3.4.4/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F165"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "parse-json",
          "name": [
            {
              "t": "fact",
              "fact": "F175"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/sindresorhus/parse-json"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/parse-json"
            },
            {
              "label": "Docs",
              "href": "https://cdn.jsdelivr.net/npm/parse-json@8.3.0/readme.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F264"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F176"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F178"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F177"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/parse-json@8.3.0/readme.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F175"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F265"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F266"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F267"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F268"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F190"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F191"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/bigcommerce/stencil-cli",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F190"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "export function parse(jsonString, file = '') {\n    try {\n        return parseJson(jsonString);\n    } catch (e) {\n        throw new Error(`${file} - ${e.message}`);\n    }\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/bigcommerce/stencil-cli/blob/f0163059fcbf3e0ea87931fd232c21e7f0199a3b/lib/parse-json.js#L3-L9",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F189"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=parse-json%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F175"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import parseJson from 'parse-json';\n\nconst value = parseJson('{\"enabled\":true}');\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/parse-json@8.3.0/readme.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "readme.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F180"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "json-stable-stringify-without-jsonify",
          "name": [
            {
              "t": "fact",
              "fact": "F192"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/samn/json-stable-stringify"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/json-stable-stringify-without-jsonify"
            },
            {
              "label": "Docs",
              "href": "https://cdn.jsdelivr.net/npm/json-stable-stringify-without-jsonify@1.0.1/readme.markdown"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F269"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F195"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F194"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/json-stable-stringify-without-jsonify@1.0.1/readme.markdown",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F192"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F270"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F271"
                }
              ]
            }
          ],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F207"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F208"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/eslint/eslint",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F207"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "function hashOfConfigFor(config) {\n\tif (!configHashCache.has(config)) {\n\t\tconfigHashCache.set(\n\t\t\tconfig,\n\t\t\thash(`${pkg.version}_${nodeVersion}_${stringify(config)}`),\n\t\t);\n\t}\n\n\treturn configHashCache.get(config);\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/eslint/eslint/blob/48207902fccd37450823b8fd07736d84449ec8e7/lib/cli-engine/lint-result-cache.js#L53-L62",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F206"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=json-stable-stringify-without-jsonify%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F192"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "const stringify = require('json-stable-stringify-without-jsonify');\n\nconst text = stringify({ b: 2, a: 1 });\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/json-stable-stringify-without-jsonify@1.0.1/readme.markdown",
                  "label": [
                    {
                      "t": "text",
                      "text": "readme.markdown"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F197"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "ungap-structured-clone",
          "name": [
            {
              "t": "fact",
              "fact": "F209"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/ungap/structured-clone"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@ungap/structured-clone"
            },
            {
              "label": "Docs",
              "href": "https://cdn.jsdelivr.net/npm/@ungap/structured-clone@1.4.0/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F272"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F210"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F211"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/@ungap/structured-clone@1.4.0/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F209"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F273"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F274"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F275"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F276"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F225"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F226"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/decentralized-identity/veramo",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F225"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "async importDID(args: IIdentifier) {\n  const oldTree = deserialize(serialize(this.cacheTree, { lossy: true }))\n  this.cacheTree.dids[args.did] = args\n  args.keys.forEach((key) => {\n    this.cacheTree.keys[key.kid] = {\n      ...key,\n      // FIXME: keys should be able to associate with multiple DIDs\n      meta: { ...key.meta, did: args.did },\n    }\n  })\n\n  await this.notifyUpdate(oldTree, this.cacheTree)\n  return true\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/decentralized-identity/veramo/blob/ac953d9a28db1faa57266636de7c4ed891bf1b0b/packages/data-store-json/src/identifier/did-store.ts#L84-L97",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F224"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40ungap/structured-clone%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F209"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { stringify } from '@ungap/structured-clone/json';\n\nconst text = stringify({ any: 'serializable' });\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/@ungap/structured-clone@1.4.0/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F214"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "jsonc-parser",
          "name": [
            {
              "t": "fact",
              "fact": "F227"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/microsoft/node-jsonc-parser"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/jsonc-parser"
            },
            {
              "label": "Docs",
              "href": "https://cdn.jsdelivr.net/npm/jsonc-parser@3.3.1/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F277"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F228"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F230"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F229"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/jsonc-parser@3.3.1/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F227"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F278"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F279"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F280"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F281"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F242"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F243"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/neon-solutions/add-mcp",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F242"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "export function writeJsonConfig(\n  filePath: string,\n  config: ConfigFile,\n  configKey: string,\n): void {\n  const dir = dirname(filePath);\n  if (!existsSync(dir)) {\n    mkdirSync(dir, { recursive: true });\n  }\n\n  let originalContent = \"\";\n  let existingConfig: ConfigFile = {};\n\n  if (existsSync(filePath)) {\n    originalContent = readFileSync(filePath, \"utf-8\");\n    // jsonc.parse returns undefined for empty and comment-only files.\n    const parsed: unknown = jsonc.parse(originalContent);\n    if (parsed && typeof parsed === \"object\" && !Array.isArray(parsed)) {\n      existingConfig = parsed as ConfigFile;\n    }\n  }\n\n  // Copilot CLI ignores root keys once mcpServers exists. Fold a bare map\n  // into mcpServers before writing that wrapper, or those servers vanish.\n  const replaceDocument =\n    configKey !== ROOT_CONFIG_KEY && isBareServerMap(existingConfig);\n  if (replaceDocument) {\n    existingConfig = { mcpServers: { ...existingConfig } };\n  }\n\n  dropReplacedServers(existingConfig, config, configKey);\n  const mergedConfig = deepMerge(existingConfig, config);\n\n  if (originalContent) {\n    try {\n      const configKeyPath = replaceDocument ? [] : jsoncPath(configKey);\n      const newValue = replaceDocument\n        ? mergedConfig\n        : getNestedValue(mergedConfig, configKey);\n      const edits = jsonc.modify(originalContent, configKeyPath, newValue, {\n        formattingOptions: detectIndent(originalContent),\n      });\n      const updatedContent = jsonc.applyEdits(originalContent, edits);\n      writeFileSync(filePath, updatedContent);\n      return;\n    } catch {\n      // jsonc-parser failed, fall back to JSON.stringify\n    }\n  }\n\n  writeFileSync(filePath, JSON.stringify(mergedConfig, null, 2));\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/neon-solutions/add-mcp/blob/5eec76ba7501f77e744429cdb918feb296e3b5ac/src/formats/json.ts#L53-L104",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F241"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=jsonc-parser%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F227"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "const { parse } = require('jsonc-parser');\n\nconst errors = [];\nconst value = parse('{ /* configuration */ \"enabled\": true }', errors);\nif (errors.length) throw new Error('Invalid JSONC');\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/jsonc-parser@3.3.1/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F232"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "safe-stable-stringify",
          "name": [
            {
              "t": "fact",
              "fact": "F244"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/BridgeAR/safe-stable-stringify"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/safe-stable-stringify"
            },
            {
              "label": "Docs",
              "href": "https://cdn.jsdelivr.net/npm/safe-stable-stringify@3.0.1/readme.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F282"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F247"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F246"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/safe-stable-stringify@3.0.1/readme.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F244"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F283"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F284"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F285"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F286"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F259"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F260"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/winstonjs/winston",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F259"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "_doRequest(options, callback, auth, path) {\n  // Prepare options for outgoing HTTP request\n  const headers = Object.assign({}, this.headers);\n  if (auth && auth.bearer) {\n    headers.Authorization = `Bearer ${auth.bearer}`;\n  }\n  const req = (this.ssl ? https : http).request({\n    ...this.options,\n    method: 'POST',\n    host: this.host,\n    port: this.port,\n    path: `/${path.replace(/^\\//, '')}`,\n    headers: headers,\n    auth: (auth && auth.username && auth.password) ? (`${auth.username}:${auth.password}`) : '',\n    agent: this.agent\n  });\n\n  req.on('error', callback);\n  req.on('response', res => (\n    res.on('end', () => callback(null, res)).resume()\n  ));\n  const jsonStringify = configure({\n    ...(this.maximumDepth && { maximumDepth: this.maximumDepth })\n  });\n  req.end(Buffer.from(jsonStringify(options, this.options.replacer), 'utf8'));\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/winstonjs/winston/blob/ff0b79de8562bb322c390fbc82fe71c11f373428/lib/winston/transports/http.js#L236-L261",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F258"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=safe-stable-stringify%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F244"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "const stringify = require('safe-stable-stringify');\n\nconst text = stringify({ b: 2, a: 1 });\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/safe-stable-stringify@3.0.1/readme.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "readme.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F249"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "What is structuredClone?",
      "a": [
        {
          "t": "text",
          "text": "structuredClone is the HTML standard's function for deep copies of values, including types that JSON cannot hold. "
        },
        {
          "t": "link",
          "href": "#ungap-structured-clone",
          "label": [
            {
              "t": "text",
              "text": "@ungap/structured-clone"
            }
          ]
        },
        {
          "t": "text",
          "text": " supplies it as a polyfill and also exports a serializer whose output can be stringified as JSON."
        }
      ]
    },
    {
      "q": "What is JSON5?",
      "a": [
        {
          "t": "link",
          "href": "#json",
          "label": [
            {
              "t": "fact",
              "fact": "F1"
            }
          ]
        },
        {
          "t": "text",
          "text": " is a superset of JSON for configuration files that people write by hand. Valid JSON files are also valid "
        },
        {
          "t": "fact",
          "fact": "F1"
        },
        {
          "t": "text",
          "text": " files."
        }
      ]
    },
    {
      "q": "What is JSONC?",
      "a": [
        {
          "t": "text",
          "text": "JSONC is JSON with JavaScript-style comments. "
        },
        {
          "t": "link",
          "href": "#jsonc-parser",
          "label": [
            {
              "t": "text",
              "text": "jsonc-parser"
            }
          ]
        },
        {
          "t": "text",
          "text": " scans, parses, and edits JSONC documents and also reads standard JSON."
        }
      ]
    },
    {
      "q": "Can JSON have comments?",
      "a": [
        {
          "t": "text",
          "text": "Standard JSON has no comments. "
        },
        {
          "t": "link",
          "href": "#json",
          "label": [
            {
              "t": "fact",
              "fact": "F1"
            }
          ]
        },
        {
          "t": "text",
          "text": " and "
        },
        {
          "t": "link",
          "href": "#jsonc-parser",
          "label": [
            {
              "t": "text",
              "text": "jsonc-parser"
            }
          ]
        },
        {
          "t": "text",
          "text": " both parse files that contain them."
        }
      ]
    },
    {
      "q": "JSON5 vs JSONC: what is the difference?",
      "a": [
        {
          "t": "text",
          "text": "JSONC adds JavaScript-style comments to JSON. "
        },
        {
          "t": "link",
          "href": "#json",
          "label": [
            {
              "t": "fact",
              "fact": "F1"
            }
          ]
        },
        {
          "t": "text",
          "text": " accepts comments as well as other syntax that people use in hand-written configuration."
        }
      ]
    },
    {
      "q": "How do I stringify an object with circular references?",
      "a": [
        {
          "t": "link",
          "href": "#flatted",
          "label": [
            {
              "t": "text",
              "text": "flatted"
            }
          ]
        },
        {
          "t": "text",
          "text": " writes circular references in its own format and restores them with flatted.parse. "
        },
        {
          "t": "link",
          "href": "#safe-stable-stringify",
          "label": [
            {
              "t": "text",
              "text": "safe-stable-stringify"
            }
          ]
        },
        {
          "t": "text",
          "text": " replaces each circular reference with a placeholder value rather than throwing."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, json5",
      "display": "JSON5",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, json5",
      "display": "1.2B",
      "asOf": "2026-11-15"
    },
    "F3": {
      "label": "License, json5",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, json5",
      "display": "2.2.3",
      "asOf": "2026-11-17"
    },
    "F5": {
      "label": "Undated package release, json5",
      "display": "v2.2.3",
      "asOf": "2026-11-17"
    },
    "F6": {
      "label": "Repository stars, json5",
      "display": "7.2K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "Parses text, json5",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Serializes values, json5",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Install, json5",
      "display": "npm install json5",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "What it does, json5",
      "display": "Parses and serializes configuration text with syntax beyond standard JSON.",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "strengths lead, json5",
      "display": "Accepts configuration comments",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "strengths, json5",
      "display": "Keep single-line or multi-line comments in configuration files.",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "strengths lead, json5",
      "display": "Reads standard JSON too",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths, json5",
      "display": "Parse existing valid JSON files without converting their syntax.",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "limitations lead, json5",
      "display": "Targets human-edited configuration",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "limitations, json5",
      "display": "Use JSON for machine-to-machine communication.",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "Quickstart, json5",
      "display": "require('json5/lib/register')\n\nconst config = require('./config.json5')\n",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "Project function, json5",
      "display": "export function parseConfigOverrides(configOverrides: string): any {\n  const trimmed = configOverrides.trim();\n  if (!trimmed) {\n    return {};\n  }\n  return JSON5.parse(trimmed);\n}\n",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "Project function reference, json5",
      "display": "compilation.ts · parseConfigOverrides()",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "Project repository, json5",
      "display": "react/react",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "Project stars, react/react",
      "display": "252.7K",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Project push date, react/react",
      "display": "Nov 2026",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Library name, flatted",
      "display": "flatted",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Monthly downloads, flatted",
      "display": "779.3M",
      "asOf": "2026-11-15"
    },
    "F25": {
      "label": "License, flatted",
      "display": "ISC",
      "asOf": "2026-11-17"
    },
    "F26": {
      "label": "Package release, flatted",
      "display": "3.4.4",
      "asOf": "2026-11-17"
    },
    "F27": {
      "label": "Undated package release, flatted",
      "display": "v3.4.4",
      "asOf": "2026-11-17"
    },
    "F28": {
      "label": "Repository stars, flatted",
      "display": "1.2K",
      "asOf": "2026-11-17"
    },
    "F29": {
      "label": "Parses text, flatted",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F30": {
      "label": "Serializes values, flatted",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F31": {
      "label": "Install, flatted",
      "display": "npm install flatted",
      "asOf": "2026-11-17"
    },
    "F32": {
      "label": "What it does, flatted",
      "display": "Serializes and restores circular object structures using a paired wire format.",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "strengths lead, flatted",
      "display": "Restores circular object links",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "strengths, flatted",
      "display": "Pair stringify and parse to round-trip recursive structures.",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "strengths lead, flatted",
      "display": "Filters values during serialization",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "strengths, flatted",
      "display": "Pass a replacer to control which values stringify emits.",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "limitations lead, flatted",
      "display": "Requires its matching parser",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "limitations, flatted",
      "display": "Pair flatted output with flatted.parse to restore references correctly.",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "limitations lead, flatted",
      "display": "Supports JSON-compatible values only",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "limitations, flatted",
      "display": "Objects such as sockets do not round-trip as their original classes.",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "Quickstart, flatted",
      "display": "import {toJSON, fromJSON} from 'flatted';\n\nclass RecursiveMap extends Map {\n  static fromJSON(any) {\n    return new this(fromJSON(any));\n  }\n  toJSON() {\n    return toJSON([...this.entries()]);\n  }\n}\n\nconst recursive = new RecursiveMap;\nconst same = {};\nsame.same = same;\nrecursive.set('same', same);\n\nconst asString = JSON.stringify(recursive);\nconst asMap = RecursiveMap.fromJSON(JSON.parse(asString));\nasMap.get('same') === asMap.get('same').same;\n// true\n",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "Project function, flatted",
      "display": "export function useWhyDidYouUpdate(\n  name: string,\n  props: Record<string, any>,\n  {\n    onChangeFound,\n    onNoChangeFound,\n  }: {\n    onChangeFound?: (data: {\n      changesObj: Record<\n        string,\n        { from: any; to: any; isDeepEqual: boolean; changedKeys?: string[] }\n      >\n    }) => void\n    onNoChangeFound?: () => void\n  } = {},\n) {\n  const latestProps = useRef(props)\n\n  useEffect(() => {\n    if (!__DEV__) return\n\n    const allKeys = Object.keys({ ...latestProps.current, ...props })\n\n    const changesObj: Record<\n      string,\n      { from: any; to: any; isDeepEqual: boolean; changedKeys?: string[] }\n    > = {}\n    allKeys.forEach((key) => {\n      if (latestProps.current[key] !== props[key]) {\n        changesObj[key] = {\n          from: latestProps.current[key],\n          to: props[key],\n          changedKeys:\n            props[key] && typeof props[key] === 'object'\n              ? Object.keys(latestProps.current[key])\n                  .map((k) =>\n                    latestProps.current[key][k] === props[key][k] ? '' : k,\n                  )\n                  .filter(Boolean)\n              : undefined,\n          isDeepEqual: _.isEqual(latestProps.current[key], props[key]),\n        }\n      }\n    })\n\n    if (Object.keys(changesObj).length) {\n      if (onChangeFound) {\n        onChangeFound({ changesObj })\n      } else {\n        // eslint-disable-next-line no-console\n        console.log('[why-did-you-update]', name, {\n          changes: flatted.parse(flatted.stringify(changesObj)),\n          props: { from: latestProps.current, to: props },\n        })\n      }\n    } else if (onNoChangeFound) {\n      onNoChangeFound()\n    }\n\n    latestProps.current = props\n  })\n}\n",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "Project function reference, flatted",
      "display": "use-why-did-you-update.ts · useWhyDidYouUpdate()",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "Project repository, flatted",
      "display": "devhubapp/devhub",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "Project stars, devhubapp/devhub",
      "display": "10.2K",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "Project push date, devhubapp/devhub",
      "display": "Sep 2024",
      "asOf": "2024-09-07"
    },
    "F47": {
      "label": "Library name, fast-json-stringify",
      "display": "fast-json-stringify",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Monthly downloads, fast-json-stringify",
      "display": "104.5M",
      "asOf": "2026-11-15"
    },
    "F49": {
      "label": "License, fast-json-stringify",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F50": {
      "label": "Package release, fast-json-stringify",
      "display": "7.3.6",
      "asOf": "2026-11-17"
    },
    "F51": {
      "label": "Undated package release, fast-json-stringify",
      "display": "v7.3.6",
      "asOf": "2026-11-17"
    },
    "F52": {
      "label": "Repository stars, fast-json-stringify",
      "display": "3.7K",
      "asOf": "2026-11-17"
    },
    "F53": {
      "label": "Serializes values, fast-json-stringify",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F54": {
      "label": "Install, fast-json-stringify",
      "display": "npm install fast-json-stringify",
      "asOf": "2026-11-17"
    },
    "F55": {
      "label": "What it does, fast-json-stringify",
      "display": "Builds reusable stringify functions from output schemas.",
      "asOf": "2026-11-17"
    },
    "F56": {
      "label": "strengths lead, fast-json-stringify",
      "display": "Builds schema-specific serializers",
      "asOf": "2026-11-17"
    },
    "F57": {
      "label": "strengths, fast-json-stringify",
      "display": "Build a stringify function around a known output schema.",
      "asOf": "2026-11-17"
    },
    "F58": {
      "label": "strengths lead, fast-json-stringify",
      "display": "Drops fields outside the schema",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "strengths, fast-json-stringify",
      "display": "Leave additionalProperties disabled to exclude unspecified output fields.",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "limitations lead, fast-json-stringify",
      "display": "Treat schemas as trusted code",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "limitations, fast-json-stringify",
      "display": "Keep user-supplied schemas out of the serializer compiler.",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "limitations lead, fast-json-stringify",
      "display": "Integer fields truncate fractions",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "limitations, fast-json-stringify",
      "display": "Set rounding explicitly when truncating fractional inputs is inappropriate.",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "limitations lead, fast-json-stringify",
      "display": "Requires matching or coercible inputs",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "limitations, fast-json-stringify",
      "display": "Validate inputs separately to avoid undefined behavior on schema mismatches.",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "Quickstart, fast-json-stringify",
      "display": "const fastJson = require('fast-json-stringify')\nconst stringify = fastJson({\n  title: 'Example Schema',\n  type: 'object',\n  properties: {\n    firstName: {\n      type: 'string'\n    },\n    lastName: {\n      type: 'string'\n    },\n    age: {\n      description: 'Age in years',\n      type: 'integer'\n    },\n    reg: {\n      type: 'string'\n    }\n  }\n})\n\nconsole.log(stringify({\n  firstName: 'Matteo',\n  lastName: 'Collina',\n  age: 32,\n  reg: /\"([^\"]|\\\\\")*\"/\n}))\n",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "Project function, fast-json-stringify",
      "display": "export function buildCursorUtils (app, entity) {\n  const responseSchema = app.getSchema(entity.name)\n  const nativeSchema = mapSQLEntityToJSONSchema(entity, {}, true)\n  const properties = Object.fromEntries(\n    Object.keys(responseSchema.properties).map(name => [name, nativeSchema.properties[name]])\n  )\n  const cursorSchema = {\n    $id: entity.name + 'Cursor',\n    title: responseSchema.title + ' Cursor',\n    description: responseSchema.description + ' cursor',\n    type: 'object',\n    properties,\n    additionalProperties: false\n  }\n  const validateCursor = ajv.compile(cursorSchema)\n  const stringifyCursor = fjs(cursorSchema, {\n    ajv: ajvOptions\n  })\n\n  function encodeCursor (cursor) {\n    return Buffer.from(stringifyCursor(cursor)).toString('base64')\n  }\n\n  function decodeCursor (cursorBase64) {\n    const cursorString = Buffer.from(cursorBase64, 'base64').toString()\n    let parsedCursor\n    try {\n      parsedCursor = sjson.parse(cursorString)\n    } catch (error) {\n      throw new UnableToParseCursorStrError(error.message)\n    }\n    if (!validateCursor(parsedCursor)) {\n      const error = validateCursor.errors[0]\n      throw new CursorValidationError(`${error.instancePath} ${error.message}`)\n    }\n    return parsedCursor\n  }\n\n  function transformQueryToCursor ({ startAfter, endBefore }) {\n    const parsedData = {\n      nextPage: true,\n      cursor: null\n    }\n    if (startAfter) {\n      parsedData.cursor = decodeCursor(startAfter)\n    } else if (endBefore) {\n      parsedData.cursor = decodeCursor(endBefore)\n      parsedData.nextPage = false\n    }\n    return parsedData\n  }\n\n  function buildCursorHeaders ({ findResult, orderBy, primaryKeys }) {\n    const firstItem = findResult.at(0)\n    const lastItem = findResult.at(-1)\n    const firstItemCursor = {}\n    const lastItemCursor = {}\n    const camelCasedPrimaryKeys = Array.from(primaryKeys).map(key => camelCase(key))\n    let hasPrimaryKey = false\n    for (const { field } of orderBy) {\n      if (firstItem[field] === undefined) continue\n      firstItemCursor[field] = firstItem[field]\n      lastItemCursor[field] = lastItem[field]\n      if (camelCasedPrimaryKeys.includes(field)) hasPrimaryKey = true\n    }\n    if (!hasPrimaryKey) throw new PrimaryKeyNotIncludedInOrderByInCursorPaginationError()\n    return {\n      endBefore: encodeCursor(firstItemCursor),\n      startAfter: encodeCursor(lastItemCursor)\n    }\n  }\n\n  return {\n    transformQueryToCursor,\n    buildCursorHeaders\n  }\n}\n",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "Project function reference, fast-json-stringify",
      "display": "cursor.js · buildCursorUtils()",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "Project repository, fast-json-stringify",
      "display": "platformatic/platformatic",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "Project stars, platformatic/platformatic",
      "display": "2.2K",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "Project push date, platformatic/platformatic",
      "display": "Nov 2026",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "Library name, lossless-json",
      "display": "lossless-json",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "Monthly downloads, lossless-json",
      "display": "9.7M",
      "asOf": "2026-11-15"
    },
    "F74": {
      "label": "License, lossless-json",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F75": {
      "label": "Package release, lossless-json",
      "display": "4.3.3",
      "asOf": "2026-11-17"
    },
    "F76": {
      "label": "Undated package release, lossless-json",
      "display": "v4.3.3",
      "asOf": "2026-11-17"
    },
    "F77": {
      "label": "Repository stars, lossless-json",
      "display": "479",
      "asOf": "2026-11-17"
    },
    "F78": {
      "label": "Parses text, lossless-json",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F79": {
      "label": "Serializes values, lossless-json",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F80": {
      "label": "Install, lossless-json",
      "display": "npm install lossless-json",
      "asOf": "2026-11-17"
    },
    "F81": {
      "label": "What it does, lossless-json",
      "display": "Parses and serializes JSON while retaining numeric information and number formatting.",
      "asOf": "2026-11-17"
    },
    "F82": {
      "label": "strengths lead, lossless-json",
      "display": "Keeps original numeric text",
      "asOf": "2026-11-17"
    },
    "F83": {
      "label": "strengths, lossless-json",
      "display": "Round-trip large integers and decimal formatting without changing their written values.",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "strengths lead, lossless-json",
      "display": "Lets applications choose numeric types",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "strengths, lossless-json",
      "display": "Supply parseNumber to create custom number representations.",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "limitations lead, lossless-json",
      "display": "Numbers become LosslessNumber objects",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "limitations, lossless-json",
      "display": "Convert deliberately when another API expects ordinary JavaScript numbers.",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "limitations lead, lossless-json",
      "display": "Duplicate keys throw by default",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "limitations, lossless-json",
      "display": "Set onDuplicateKey when duplicate keys need a specific resolution policy.",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "Quickstart, lossless-json",
      "display": "import { parse, stringify } from 'lossless-json'\n\nconst text = '{\"decimal\":2.370,\"long\":9123372036854000123,\"big\":2.3e+500}'\n\n// JSON.parse will lose some digits and a whole number:\nconsole.log(JSON.stringify(JSON.parse(text)))\n// '{\"decimal\":2.37,\"long\":9123372036854000000,\"big\":null}'\n// WHOOPS!!!\n\n// LosslessJSON.parse will preserve all numbers and even the formatting:\nconsole.log(stringify(parse(text)))\n// '{\"decimal\":2.370,\"long\":9123372036854000123,\"big\":2.3e+500}'\n",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "Project function, lossless-json",
      "display": "get body(): string {\n    if (this._body === undefined) {\n      let raw = this.raw;\n      try {\n        const parsed = parse(raw, undefined, {\n          onDuplicateKey: ({ newValue }) => newValue,\n        });\n        if (typeof parsed === 'object' && parsed !== null && !(parsed instanceof LosslessNumber)) {\n          this._json = true;\n        }\n        const reStringified = this._wrapLogMessage && this._prettifyJSON ? stringify(parsed, undefined, 2) : this.raw;\n        if (reStringified) {\n          raw = reStringified;\n        }\n      } catch (error) {}\n\n      // always escape for literal \\n, \\t, \\r sequences so \"Escape newlines\" works for all log types.\n      if (this._escapeUnescapedString) {\n        raw = escapeUnescapedString(raw);\n      }\n      this._body = this.collapsed\n        ? raw.substring(0, this._virtualization?.getTruncationLength(null) ?? TRUNCATION_DEFAULT_LENGTH)\n        : raw;\n      if (!this._wrapLogMessage) {\n        this._body = this._body.replace(NEWLINES_REGEX, '');\n      }\n    }\n    return this._body;\n  }\n",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "Project function reference, lossless-json",
      "display": "processing.ts · body()",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "Project repository, lossless-json",
      "display": "grafana/grafana",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "Project stars, grafana/grafana",
      "display": "78.0K",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "Project push date, grafana/grafana",
      "display": "Nov 2026",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "Developer need",
      "display": "Human-edited configuration",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "Why choose json5",
      "display": "comments inside configuration files",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "Developer need in introduction",
      "display": "human-edited configuration",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "When to consider lossless-json",
      "display": "large numeric literals need exact preservation",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "Developer need",
      "display": "Circular object graphs",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "Why choose flatted",
      "display": "paired serialization and reference restoration",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "Developer need in introduction",
      "display": "circular object graphs",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "When to consider lossless-json",
      "display": "payloads primarily require exact numeric text",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "Developer need",
      "display": "Numeric text round trips",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "Why choose lossless-json",
      "display": "unchanged numeric values and spelling",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "Developer need in introduction",
      "display": "numeric text round trips",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "When to consider json5",
      "display": "people need comments in configuration files",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "Developer need",
      "display": "Schema-shaped JSON responses",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "Why choose fast-json-stringify",
      "display": "output fields controlled by a schema",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "Developer need in introduction",
      "display": "schema-shaped JSON responses",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "When to consider lossless-json",
      "display": "round-tripping numeric JSON text is the main job",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "Page introduction",
      "display": "JavaScript JSON libraries let developers read or write JSON data.",
      "asOf": "2026-11-17"
    },
    "F113": {
      "label": "FAQ: When should an application use JSON5?",
      "display": "JSON5 targets configuration files that people write and maintain by hand.",
      "asOf": "2026-11-17"
    },
    "F114": {
      "label": "FAQ: When should an application use JSON5?",
      "display": "Its own format guidance recommends JSON for machine-to-machine communication.",
      "asOf": "2026-11-17"
    },
    "F115": {
      "label": "FAQ: Does JSON5 accept ordinary JSON files?",
      "display": "JSON5 is a superset of JSON, so valid JSON files are also valid JSON5 files.",
      "asOf": "2026-11-17"
    },
    "F116": {
      "label": "FAQ: Does JSON5.stringify produce strict JSON?",
      "display": "JSON5.stringify produces JSON5 text.",
      "asOf": "2026-11-17"
    },
    "F117": {
      "label": "FAQ: Does JSON5.stringify produce strict JSON?",
      "display": "The package CLI converts JSON5 documents to JSON and supports an output file.",
      "asOf": "2026-11-17"
    },
    "F118": {
      "label": "FAQ: Can raw flatted output be passed to JSON.parse?",
      "display": "Use flatted.parse with flatted.stringify; mixing raw flatted and native JSON operations does not guarantee data integrity.",
      "asOf": "2026-11-17"
    },
    "F119": {
      "label": "FAQ: Does flatted automatically restore sockets and custom classes?",
      "display": "It serializes JSON-compatible data; sockets and unsupported internal classes do not round-trip as those original classes.",
      "asOf": "2026-11-17"
    },
    "F120": {
      "label": "FAQ: Can a custom class use flatted through toJSON?",
      "display": "The own RecursiveMap example defines matching toJSON/fromJSON methods around native JSON serialization; this is an explicit class protocol.",
      "asOf": "2026-11-17"
    },
    "F121": {
      "label": "FAQ: What type represents numbers in lossless-json?",
      "display": "Numeric tokens become LosslessNumber objects that retain their textual representation.",
      "asOf": "2026-11-17"
    },
    "F122": {
      "label": "FAQ: How does lossless-json handle duplicate object keys?",
      "display": "Duplicate keys throw by default; onDuplicateKey can keep the previous value, use the new value, or apply another explicit policy.",
      "asOf": "2026-11-17"
    },
    "F123": {
      "label": "FAQ: Can applications customize lossless-json numeric values?",
      "display": "Pass parseNumber to create numbers, bigint values, LosslessNumber objects, or another numeric representation.",
      "asOf": "2026-11-17"
    },
    "F124": {
      "label": "FAQ: Does fast-json-stringify include every input property?",
      "display": "When additionalProperties is absent or false, fields outside properties and patternProperties are omitted.",
      "asOf": "2026-11-17"
    },
    "F125": {
      "label": "FAQ: What happens to fractional values in integer fields?",
      "display": "Integer output uses truncation by default; the rounding option can select another rule.",
      "asOf": "2026-11-17"
    },
    "F126": {
      "label": "FAQ: Can schemas and data be treated as untrusted input?",
      "display": "Treat the serializer schema as application code, not user-provided data.",
      "asOf": "2026-11-17"
    },
    "F127": {
      "label": "FAQ: Can schemas and data be treated as untrusted input?",
      "display": "The serializer only guarantees valid output for data matching or coercible to its schema; validate other input separately.",
      "asOf": "2026-11-17"
    },
    "F128": {
      "label": "Library name, json5",
      "display": "JSON5",
      "asOf": "2026-11-20"
    },
    "F129": {
      "label": "Monthly downloads, json5",
      "display": "1.2B",
      "asOf": "2026-11-20"
    },
    "F130": {
      "label": "License, json5",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F131": {
      "label": "Package release, json5",
      "display": "2.2.3",
      "asOf": "2026-11-20"
    },
    "F132": {
      "label": "Package release date, json5",
      "display": "Dec 2022",
      "asOf": "2026-11-20"
    },
    "F133": {
      "label": "Install, json5",
      "display": "npm install json5@2.2.3",
      "asOf": "2026-11-20"
    },
    "F134": {
      "label": "Quickstart, json5",
      "display": "const JSON5 = require('json5');\n\nconst config = JSON5.parse('{ enabled: true, }');\n",
      "asOf": "2026-11-20"
    },
    "F135": {
      "label": "Parses commented input, json5",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F136": {
      "label": "Deterministic key sorting, json5",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F137": {
      "label": "Preserves cyclic references, json5",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F138": {
      "label": "Native parsing and serialization workflow, json5",
      "display": "Hand-edited configuration syntax: comments, unquoted keys, trailing commas, and JSON5 parse/stringify. Exact2.2.3 README backs this API; repository HEAD already describes a newer major and extra options not attributed here.",
      "asOf": "2026-11-20"
    },
    "F139": {
      "label": "Project function, json5",
      "display": "export function parseConfigOverrides(configOverrides: string): any {\n  const trimmed = configOverrides.trim();\n  if (!trimmed) {\n    return {};\n  }\n  return JSON5.parse(trimmed);\n}\n",
      "asOf": "2026-11-20"
    },
    "F140": {
      "label": "Project source file, json5",
      "display": "compiler/apps/playground/lib/compilation.ts",
      "asOf": "2026-11-20"
    },
    "F141": {
      "label": "Project full_name, json5",
      "display": "react/react",
      "asOf": "2026-11-20"
    },
    "F142": {
      "label": "Project stargazers_count, json5",
      "display": "252.7K",
      "asOf": "2026-11-20"
    },
    "F143": {
      "label": "Library name, fast-json-stable-stringify",
      "display": "fast-json-stable-stringify",
      "asOf": "2026-11-20"
    },
    "F144": {
      "label": "Monthly downloads, fast-json-stable-stringify",
      "display": "811.8M",
      "asOf": "2026-11-20"
    },
    "F145": {
      "label": "License, fast-json-stable-stringify",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F146": {
      "label": "Package release, fast-json-stable-stringify",
      "display": "2.1.0",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "Package release date, fast-json-stable-stringify",
      "display": "Dec 2019",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "Install, fast-json-stable-stringify",
      "display": "npm install fast-json-stable-stringify@2.1.0",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "Quickstart, fast-json-stable-stringify",
      "display": "const stringify = require('fast-json-stable-stringify');\n\nconst text = stringify({ b: 2, a: 1 });\n",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "Official description, fast-json-stable-stringify",
      "display": "Deterministic object-key ordering and an optional custom comparator for stable serialization; its optional cycle marker does not restore graph identity.",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "Quickstart source file, fast-json-stable-stringify",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "Parses commented input, fast-json-stable-stringify",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "Deterministic key sorting, fast-json-stable-stringify",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "Preserves cyclic references, fast-json-stable-stringify",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "Native parsing and serialization workflow, fast-json-stable-stringify",
      "display": "Deterministic object-key ordering and an optional custom comparator for stable serialization; its optional cycle marker does not restore graph identity.",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "Project function, fast-json-stable-stringify",
      "display": "async contentHash(): Promise<string> {\n  const content: Record<string, unknown> = { ...this.getContent() };\n\n  if (this.evaluators && this.evaluators.length > 0) {\n    content[\"evaluators\"] = this.evaluators;\n  }\n\n  if (\n    this.executionPolicy &&\n    Object.keys(this.executionPolicy).length > 0\n  ) {\n    content[\"executionPolicy\"] = this.executionPolicy;\n  }\n\n  // Use fast-json-stable-stringify for deterministic JSON\n  const json = stringify(content);\n\n  // Use xxhash32 with a seed value for hashing\n  const hashFn = await initHashApi();\n  const hash = hashFn.h32(json, 0xabcd).toString(16);\n\n  return hash;\n}\n",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "Project source file, fast-json-stable-stringify",
      "display": "sdks/typescript/src/opik/dataset/DatasetItem.ts",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "Project full_name, fast-json-stable-stringify",
      "display": "comet-ml/opik",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "Project stargazers_count, fast-json-stable-stringify",
      "display": "23.5K",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "Library name, flatted",
      "display": "flatted",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "Monthly downloads, flatted",
      "display": "797.9M",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "License, flatted",
      "display": "ISC",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "Package release, flatted",
      "display": "3.4.4",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "Package release date, flatted",
      "display": "Jul 2026",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "Install, flatted",
      "display": "npm install flatted@3.4.4",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "Quickstart, flatted",
      "display": "const { stringify } = require('flatted');\n\nconst value = {};\nvalue.self = value;\nconst text = stringify(value);\n",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "Parses commented input, flatted",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "Deterministic key sorting, flatted",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "Preserves cyclic references, flatted",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "Native parsing and serialization workflow, flatted",
      "display": "Paired stringify/parse that restores circular references for JSON-compatible values. Its encoded format must be decoded with Flatted, not ordinary JSON.parse.",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "Project function, flatted",
      "display": "export function useWhyDidYouUpdate(\n  name: string,\n  props: Record<string, any>,\n  {\n    onChangeFound,\n    onNoChangeFound,\n  }: {\n    onChangeFound?: (data: {\n      changesObj: Record<\n        string,\n        { from: any; to: any; isDeepEqual: boolean; changedKeys?: string[] }\n      >\n    }) => void\n    onNoChangeFound?: () => void\n  } = {},\n) {\n  const latestProps = useRef(props)\n\n  useEffect(() => {\n    if (!__DEV__) return\n\n    const allKeys = Object.keys({ ...latestProps.current, ...props })\n\n    const changesObj: Record<\n      string,\n      { from: any; to: any; isDeepEqual: boolean; changedKeys?: string[] }\n    > = {}\n    allKeys.forEach((key) => {\n      if (latestProps.current[key] !== props[key]) {\n        changesObj[key] = {\n          from: latestProps.current[key],\n          to: props[key],\n          changedKeys:\n            props[key] && typeof props[key] === 'object'\n              ? Object.keys(latestProps.current[key])\n                  .map((k) =>\n                    latestProps.current[key][k] === props[key][k] ? '' : k,\n                  )\n                  .filter(Boolean)\n              : undefined,\n          isDeepEqual: _.isEqual(latestProps.current[key], props[key]),\n        }\n      }\n    })\n\n    if (Object.keys(changesObj).length) {\n      if (onChangeFound) {\n        onChangeFound({ changesObj })\n      } else {\n        // eslint-disable-next-line no-console\n        console.log('[why-did-you-update]', name, {\n          changes: flatted.parse(flatted.stringify(changesObj)),\n          props: { from: latestProps.current, to: props },\n        })\n      }\n    } else if (onNoChangeFound) {\n      onNoChangeFound()\n    }\n\n    latestProps.current = props\n  })\n}\n",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "Project source file, flatted",
      "display": "packages/components/src/hooks/use-why-did-you-update.ts",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "Project full_name, flatted",
      "display": "devhubapp/devhub",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "Project stargazers_count, flatted",
      "display": "10.2K",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "Library name, parse-json",
      "display": "parse-json",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "Monthly downloads, parse-json",
      "display": "727.1M",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "License, parse-json",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "Package release, parse-json",
      "display": "8.3.0",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "Package release date, parse-json",
      "display": "Apr 2025",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "Install, parse-json",
      "display": "npm install parse-json@8.3.0",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "Quickstart, parse-json",
      "display": "import parseJson from 'parse-json';\n\nconst value = parseJson('{\"enabled\":true}');\n",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "Official description, parse-json",
      "display": "Strict JSON parsing with an error code frame and optional source filename. It reports invalid syntax; it does not accept JSON5 comments or repair malformed input.",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "Quickstart source file, parse-json",
      "display": "readme.md",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "Parses commented input, parse-json",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "Deterministic key sorting, parse-json",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "Preserves cyclic references, parse-json",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "Native parsing and serialization workflow, parse-json",
      "display": "Strict JSON parsing with an error code frame and optional source filename. It reports invalid syntax; it does not accept JSON5 comments or repair malformed input.",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "Project function, parse-json",
      "display": "export function parse(jsonString, file = '') {\n    try {\n        return parseJson(jsonString);\n    } catch (e) {\n        throw new Error(`${file} - ${e.message}`);\n    }\n}\n",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "Project source file, parse-json",
      "display": "lib/parse-json.js",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "Project full_name, parse-json",
      "display": "bigcommerce/stencil-cli",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "Project stargazers_count, parse-json",
      "display": "110",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "Library name, json-stable-stringify-without-jsonify",
      "display": "json-stable-stringify-without-jsonify",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "Monthly downloads, json-stable-stringify-without-jsonify",
      "display": "700.0M",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "License, json-stable-stringify-without-jsonify",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "Package release, json-stable-stringify-without-jsonify",
      "display": "1.0.1",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "Package release date, json-stable-stringify-without-jsonify",
      "display": "Dec 2016",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "Install, json-stable-stringify-without-jsonify",
      "display": "npm install json-stable-stringify-without-jsonify@1.0.1",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "Quickstart, json-stable-stringify-without-jsonify",
      "display": "const stringify = require('json-stable-stringify-without-jsonify');\n\nconst text = stringify({ b: 2, a: 1 });\n",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "Official description, json-stable-stringify-without-jsonify",
      "display": "A separately distributed deterministic stringifier with comparator, indentation, and replacer options. Its unchanged README imports the predecessor name; the starter explicitly uses the actual compared distribution.",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "Quickstart source file, json-stable-stringify-without-jsonify",
      "display": "readme.markdown",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "Parses commented input, json-stable-stringify-without-jsonify",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "Deterministic key sorting, json-stable-stringify-without-jsonify",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "Preserves cyclic references, json-stable-stringify-without-jsonify",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "Native parsing and serialization workflow, json-stable-stringify-without-jsonify",
      "display": "A separately distributed deterministic stringifier with comparator, indentation, and replacer options. Its unchanged README imports the predecessor name; the starter explicitly uses the actual compared distribution.",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "Project function, json-stable-stringify-without-jsonify",
      "display": "function hashOfConfigFor(config) {\n\tif (!configHashCache.has(config)) {\n\t\tconfigHashCache.set(\n\t\t\tconfig,\n\t\t\thash(`${pkg.version}_${nodeVersion}_${stringify(config)}`),\n\t\t);\n\t}\n\n\treturn configHashCache.get(config);\n}\n",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "Project source file, json-stable-stringify-without-jsonify",
      "display": "lib/cli-engine/lint-result-cache.js",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "Project full_name, json-stable-stringify-without-jsonify",
      "display": "eslint/eslint",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "Project stargazers_count, json-stable-stringify-without-jsonify",
      "display": "27.6K",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "Library name, @ungap/structured-clone",
      "display": "@ungap/structured-clone",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "Monthly downloads, @ungap/structured-clone",
      "display": "493.6M",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "License, @ungap/structured-clone",
      "display": "ISC",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "Package release, @ungap/structured-clone",
      "display": "1.4.0",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "Package release date, @ungap/structured-clone",
      "display": "Aug 2026",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "Install, @ungap/structured-clone",
      "display": "npm install @ungap/structured-clone@1.4.0",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "Quickstart, @ungap/structured-clone",
      "display": "import { stringify } from '@ungap/structured-clone/json';\n\nconst text = stringify({ any: 'serializable' });\n",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "Official description, @ungap/structured-clone",
      "display": "The explicit /json export is a paired richer-data graph codec; the root structuredClone polyfill is a different interface. Whole-package downloads include both and do not establish /json adoption.",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "Quickstart source file, @ungap/structured-clone",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "Parses commented input, @ungap/structured-clone",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "Deterministic key sorting, @ungap/structured-clone",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "Preserves cyclic references, @ungap/structured-clone",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F221": {
      "label": "Native parsing and serialization workflow, @ungap/structured-clone",
      "display": "The explicit /json export is a paired richer-data graph codec; the root structuredClone polyfill is a different interface. Whole-package downloads include both and do not establish /json adoption.",
      "asOf": "2026-11-20"
    },
    "F222": {
      "label": "Graph codec API variant, @ungap/structured-clone",
      "display": "Named serialize/deserialize produce and consume JSON-safe graph records. The /json export separately supplies text stringify/parse; the root default structuredClone export is different. The example snapshots JSON-store state through the named codec with lossy:true; it does not emit text.",
      "asOf": "2026-11-20"
    },
    "F223": {
      "label": "Project function, @ungap/structured-clone",
      "display": "async importDID(args: IIdentifier) {\n  const oldTree = deserialize(serialize(this.cacheTree, { lossy: true }))\n  this.cacheTree.dids[args.did] = args\n  args.keys.forEach((key) => {\n    this.cacheTree.keys[key.kid] = {\n      ...key,\n      // FIXME: keys should be able to associate with multiple DIDs\n      meta: { ...key.meta, did: args.did },\n    }\n  })\n\n  await this.notifyUpdate(oldTree, this.cacheTree)\n  return true\n}\n",
      "asOf": "2026-11-20"
    },
    "F224": {
      "label": "Project source file, @ungap/structured-clone",
      "display": "packages/data-store-json/src/identifier/did-store.ts",
      "asOf": "2026-11-20"
    },
    "F225": {
      "label": "Project full_name, @ungap/structured-clone",
      "display": "decentralized-identity/veramo",
      "asOf": "2026-11-20"
    },
    "F226": {
      "label": "Project stargazers_count, @ungap/structured-clone",
      "display": "547",
      "asOf": "2026-11-20"
    },
    "F227": {
      "label": "Library name, jsonc-parser",
      "display": "jsonc-parser",
      "asOf": "2026-11-20"
    },
    "F228": {
      "label": "Monthly downloads, jsonc-parser",
      "display": "414.0M",
      "asOf": "2026-11-20"
    },
    "F229": {
      "label": "License, jsonc-parser",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F230": {
      "label": "Package release, jsonc-parser",
      "display": "3.3.1",
      "asOf": "2026-11-20"
    },
    "F231": {
      "label": "Package release date, jsonc-parser",
      "display": "Jun 2024",
      "asOf": "2026-11-20"
    },
    "F232": {
      "label": "Install, jsonc-parser",
      "display": "npm install jsonc-parser@3.3.1",
      "asOf": "2026-11-20"
    },
    "F233": {
      "label": "Quickstart, jsonc-parser",
      "display": "const { parse } = require('jsonc-parser');\n\nconst errors = [];\nconst value = parse('{ /* configuration */ \"enabled\": true }', errors);\nif (errors.length) throw new Error('Invalid JSONC');\n",
      "asOf": "2026-11-20"
    },
    "F234": {
      "label": "Official description, jsonc-parser",
      "display": "Fault-tolerant JSONC parse/tree/visitor APIs, source offsets, and edit computation/application. Parse can return a value despite errors, so validity requires inspecting the supplied error list. Exact3.3.1 supports UMD/ESM builds; HEAD now calls the newer distribution ESM-only.",
      "asOf": "2026-11-20"
    },
    "F235": {
      "label": "Quickstart source file, jsonc-parser",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F236": {
      "label": "Parses commented input, jsonc-parser",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F237": {
      "label": "Deterministic key sorting, jsonc-parser",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F238": {
      "label": "Preserves cyclic references, jsonc-parser",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F239": {
      "label": "Native parsing and serialization workflow, jsonc-parser",
      "display": "Fault-tolerant JSONC parse/tree/visitor APIs, source offsets, and edit computation/application. Parse can return a value despite errors, so validity requires inspecting the supplied error list. Exact3.3.1 supports UMD/ESM builds; HEAD now calls the newer distribution ESM-only.",
      "asOf": "2026-11-20"
    },
    "F240": {
      "label": "Project function, jsonc-parser",
      "display": "export function writeJsonConfig(\n  filePath: string,\n  config: ConfigFile,\n  configKey: string,\n): void {\n  const dir = dirname(filePath);\n  if (!existsSync(dir)) {\n    mkdirSync(dir, { recursive: true });\n  }\n\n  let originalContent = \"\";\n  let existingConfig: ConfigFile = {};\n\n  if (existsSync(filePath)) {\n    originalContent = readFileSync(filePath, \"utf-8\");\n    // jsonc.parse returns undefined for empty and comment-only files.\n    const parsed: unknown = jsonc.parse(originalContent);\n    if (parsed && typeof parsed === \"object\" && !Array.isArray(parsed)) {\n      existingConfig = parsed as ConfigFile;\n    }\n  }\n\n  // Copilot CLI ignores root keys once mcpServers exists. Fold a bare map\n  // into mcpServers before writing that wrapper, or those servers vanish.\n  const replaceDocument =\n    configKey !== ROOT_CONFIG_KEY && isBareServerMap(existingConfig);\n  if (replaceDocument) {\n    existingConfig = { mcpServers: { ...existingConfig } };\n  }\n\n  dropReplacedServers(existingConfig, config, configKey);\n  const mergedConfig = deepMerge(existingConfig, config);\n\n  if (originalContent) {\n    try {\n      const configKeyPath = replaceDocument ? [] : jsoncPath(configKey);\n      const newValue = replaceDocument\n        ? mergedConfig\n        : getNestedValue(mergedConfig, configKey);\n      const edits = jsonc.modify(originalContent, configKeyPath, newValue, {\n        formattingOptions: detectIndent(originalContent),\n      });\n      const updatedContent = jsonc.applyEdits(originalContent, edits);\n      writeFileSync(filePath, updatedContent);\n      return;\n    } catch {\n      // jsonc-parser failed, fall back to JSON.stringify\n    }\n  }\n\n  writeFileSync(filePath, JSON.stringify(mergedConfig, null, 2));\n}\n",
      "asOf": "2026-11-20"
    },
    "F241": {
      "label": "Project source file, jsonc-parser",
      "display": "src/formats/json.ts",
      "asOf": "2026-11-20"
    },
    "F242": {
      "label": "Project full_name, jsonc-parser",
      "display": "neon-solutions/add-mcp",
      "asOf": "2026-11-20"
    },
    "F243": {
      "label": "Project stargazers_count, jsonc-parser",
      "display": "325",
      "asOf": "2026-11-20"
    },
    "F244": {
      "label": "Library name, safe-stable-stringify",
      "display": "safe-stable-stringify",
      "asOf": "2026-11-20"
    },
    "F245": {
      "label": "Monthly downloads, safe-stable-stringify",
      "display": "363.2M",
      "asOf": "2026-11-20"
    },
    "F246": {
      "label": "License, safe-stable-stringify",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F247": {
      "label": "Package release, safe-stable-stringify",
      "display": "3.0.1",
      "asOf": "2026-11-20"
    },
    "F248": {
      "label": "Package release date, safe-stable-stringify",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F249": {
      "label": "Install, safe-stable-stringify",
      "display": "npm install safe-stable-stringify@3.0.1",
      "asOf": "2026-11-20"
    },
    "F250": {
      "label": "Quickstart, safe-stable-stringify",
      "display": "const stringify = require('safe-stable-stringify');\n\nconst text = stringify({ b: 2, a: 1 });\n",
      "asOf": "2026-11-20"
    },
    "F251": {
      "label": "Official description, safe-stable-stringify",
      "display": "Deterministic stringification with configurable depth/breadth bounds, BigInt handling, and circular placeholders. A circular marker is lossy logging output, not a decoder that reconstructs the original graph.",
      "asOf": "2026-11-20"
    },
    "F252": {
      "label": "Quickstart source file, safe-stable-stringify",
      "display": "readme.md",
      "asOf": "2026-11-20"
    },
    "F253": {
      "label": "Parses commented input, safe-stable-stringify",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F254": {
      "label": "Deterministic key sorting, safe-stable-stringify",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F255": {
      "label": "Preserves cyclic references, safe-stable-stringify",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F256": {
      "label": "Native parsing and serialization workflow, safe-stable-stringify",
      "display": "Deterministic stringification with configurable depth/breadth bounds, BigInt handling, and circular placeholders. A circular marker is lossy logging output, not a decoder that reconstructs the original graph.",
      "asOf": "2026-11-20"
    },
    "F257": {
      "label": "Project function, safe-stable-stringify",
      "display": "_doRequest(options, callback, auth, path) {\n  // Prepare options for outgoing HTTP request\n  const headers = Object.assign({}, this.headers);\n  if (auth && auth.bearer) {\n    headers.Authorization = `Bearer ${auth.bearer}`;\n  }\n  const req = (this.ssl ? https : http).request({\n    ...this.options,\n    method: 'POST',\n    host: this.host,\n    port: this.port,\n    path: `/${path.replace(/^\\//, '')}`,\n    headers: headers,\n    auth: (auth && auth.username && auth.password) ? (`${auth.username}:${auth.password}`) : '',\n    agent: this.agent\n  });\n\n  req.on('error', callback);\n  req.on('response', res => (\n    res.on('end', () => callback(null, res)).resume()\n  ));\n  const jsonStringify = configure({\n    ...(this.maximumDepth && { maximumDepth: this.maximumDepth })\n  });\n  req.end(Buffer.from(jsonStringify(options, this.options.replacer), 'utf8'));\n}\n",
      "asOf": "2026-11-20"
    },
    "F258": {
      "label": "Project source file, safe-stable-stringify",
      "display": "lib/winston/transports/http.js",
      "asOf": "2026-11-20"
    },
    "F259": {
      "label": "Project full_name, safe-stable-stringify",
      "display": "winstonjs/winston",
      "asOf": "2026-11-20"
    },
    "F260": {
      "label": "Project stargazers_count, safe-stable-stringify",
      "display": "24.5K",
      "asOf": "2026-11-20"
    },
    "F261": {
      "label": "What, fast-json-stable-stringify",
      "display": "Stringifies objects with their keys in sorted order for a deterministic result.",
      "asOf": "2026-11-17"
    },
    "F262": {
      "label": "Strength lead, fast-json-stable-stringify",
      "display": "Custom key comparison",
      "asOf": "2026-11-17"
    },
    "F263": {
      "label": "Strength body, fast-json-stable-stringify",
      "display": "A comparison function sets the order of object keys in the output.",
      "asOf": "2026-11-17"
    },
    "F264": {
      "label": "What, parse-json",
      "display": "Parses JSON and throws errors that show the failing line in a code frame.",
      "asOf": "2026-11-17"
    },
    "F265": {
      "label": "Strength lead, parse-json",
      "display": "Names the source file",
      "asOf": "2026-11-17"
    },
    "F266": {
      "label": "Strength body, parse-json",
      "display": "An optional filename appears in the error message.",
      "asOf": "2026-11-17"
    },
    "F267": {
      "label": "Watch out lead, parse-json",
      "display": "Throws on invalid JSON",
      "asOf": "2026-11-17"
    },
    "F268": {
      "label": "Watch out body, parse-json",
      "display": "A parsing error throws a JSONError rather than returning a partial value.",
      "asOf": "2026-11-17"
    },
    "F269": {
      "label": "What, json-stable-stringify-without-jsonify",
      "display": "Stringifies objects deterministically without the unlicensed jsonify dependency.",
      "asOf": "2026-11-17"
    },
    "F270": {
      "label": "Strength lead, json-stable-stringify-without-jsonify",
      "display": "Consistent hashes",
      "asOf": "2026-11-17"
    },
    "F271": {
      "label": "Strength body, json-stable-stringify-without-jsonify",
      "display": "Equal objects produce the same string and the same hash.",
      "asOf": "2026-11-17"
    },
    "F272": {
      "label": "What, ungap structured-clone",
      "display": "Clones and serializes values with types beyond JSON, including recursive data, as a structuredClone polyfill.",
      "asOf": "2026-11-17"
    },
    "F273": {
      "label": "Strength lead, ungap structured-clone",
      "display": "Serialized output is JSON-safe",
      "asOf": "2026-11-17"
    },
    "F274": {
      "label": "Strength body, ungap structured-clone",
      "display": "Recursive values pass through JSON.stringify and deserialize intact.",
      "asOf": "2026-11-17"
    },
    "F275": {
      "label": "Watch out lead, ungap structured-clone",
      "display": "No Blob or File support",
      "asOf": "2026-11-17"
    },
    "F276": {
      "label": "Watch out body, ungap structured-clone",
      "display": "Blob, File, ImageBitmap, and other non-JavaScript types are not supported yet.",
      "asOf": "2026-11-17"
    },
    "F277": {
      "label": "What, jsonc-parser",
      "display": "Scans, parses, and edits JSON with JavaScript-style comments.",
      "asOf": "2026-11-17"
    },
    "F278": {
      "label": "Strength lead, jsonc-parser",
      "display": "Computes document edits",
      "asOf": "2026-11-17"
    },
    "F279": {
      "label": "Strength body, jsonc-parser",
      "display": "The modify API returns edits that insert, remove, or replace a value in a document.",
      "asOf": "2026-11-17"
    },
    "F280": {
      "label": "Watch out lead, jsonc-parser",
      "display": "Parses past errors",
      "asOf": "2026-11-17"
    },
    "F281": {
      "label": "Watch out body, jsonc-parser",
      "display": "The error list, rather than an exception, reports invalid input.",
      "asOf": "2026-11-17"
    },
    "F282": {
      "label": "What, safe-stable-stringify",
      "display": "Stringifies values deterministically and handles circular structures and BigInt instead of throwing.",
      "asOf": "2026-11-17"
    },
    "F283": {
      "label": "Strength lead, safe-stable-stringify",
      "display": "No dependencies",
      "asOf": "2026-11-17"
    },
    "F284": {
      "label": "Strength body, safe-stable-stringify",
      "display": "The package installs with no dependencies in ESM or CommonJS projects.",
      "asOf": "2026-11-17"
    },
    "F285": {
      "label": "Watch out lead, safe-stable-stringify",
      "display": "Circular references become placeholders",
      "asOf": "2026-11-17"
    },
    "F286": {
      "label": "Watch out body, safe-stable-stringify",
      "display": "Each circular reference becomes the configured placeholder value in the output.",
      "asOf": "2026-11-17"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best JavaScript JSON libraries JSON5 flatted lossless-json fast-json-stringify code examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
