>2022. >JSON still doesn't have comments

>2022
>JSON still doesn't have comments

It's All Fucked Shirt $22.14

The Kind of Tired That Sleep Won’t Fix Shirt $21.68

It's All Fucked Shirt $22.14

  1. 2 years ago
    Anonymous

    Makes writing an interpreter easier

  2. 2 years ago
    Anonymous

    {
    "Comment": "This level is meant for blank",
    ...
    }

    • 2 years ago
      Anonymous

      This can't be trivially stripped out before network transmission.

      • 2 years ago
        Anonymous

        Why are you commenting json that is meant for network transmission. If you are sending it over the network you are dynamically creating it. If you are dynamically creating it why don't you just comment in the language that you are using to explain what it does. The only time commenting json makes sense is when you are using it for configs. Which wouldn't matter in this case.

    • 2 years ago
      Anonymous

      >docker: error: unexpected key in /etc/docker/daemon.json: "Comment"
      >docker: tough breasts, refusing to start
      That's not a comment.

      • 2 years ago
        Anonymous

        Well maybe that's just bad design on dockers part. Instead of autistically checking all keys why won't it just grab keys that actually relate to the job it is performing. Also I think docker has something like a description attribute for explaining what a service is/does.

  3. 2 years ago
    Anonymous

    >his implementation doesn't support comments
    pathetic

  4. 2 years ago
    Anonymous

    Use yaml.

  5. 2 years ago
    Anonymous

    Im more pissed about the unsupported trailing commas than about the comments, but that is also a major issue.

    • 2 years ago
      Anonymous

      >every non-memelang supports trailing commas
      >but not JSON
      I'm so mad

      Why not drop commas entirely?
      They're redundant.
      http://www.relaxedjson.org/

      • 2 years ago
        Anonymous

        >http://www.relaxedjson.org/
        NET::ERR_CERT_COMMON_NAME_INVALID
        Stopped there tbqh

        • 2 years ago
          Anonymous

          >invalid cert

  6. 2 years ago
    Anonymous

    >every non-memelang supports trailing commas
    >but not JSON
    I'm so mad

    • 2 years ago
      Anonymous

      Why would you ever have trailing commas tho

      • 2 years ago
        Anonymous

        >have an array / bunch of key/values
        >shift the last value up
        >UH OH YOU FORGOT TO REMOVE THE TRAILING COMMA
        >nlohmann JSON with comments enabled
        >comment out a line
        >UH OH YOU NEED TO REMOVE THE COMMA FOR THE LINE ABOVE

        • 2 years ago
          Anonymous

          also makes diffs more noisy

  7. 2 years ago
    Anonymous

    Use EDN

  8. 2 years ago
    Anonymous

    If you need to specify comments in JSON, you are using JSON wrong.

    • 2 years ago
      Anonymous

      If you need comments, you are misusing JSON. It's a message passing protocol.
      If you want your project to have config files, for the love of god use something easier to edit like TOML. Editing JSON by hand is bearable compared to XML but still irritating.

      this

  9. 2 years ago
    Anonymous

    just use morse code with tabs as 1 and space as 0, don't use tab expansion, and install my free plugin that translates your tabs and spaces to comments.

  10. 2 years ago
    Anonymous

    If you need comments, you are misusing JSON. It's a message passing protocol.
    If you want your project to have config files, for the love of god use something easier to edit like TOML. Editing JSON by hand is bearable compared to XML but still irritating.

  11. 2 years ago
    Anonymous

    The one thing about JSON that truly offends me is that it mandates UTF-8 while simultaneously using UTF-16 for its character escapes
    It has worse problems but that one is just objectively shit

  12. 2 years ago
    Anonymous

    what if we replaced xhtml with json? would that reduce traffic by 10% due to not having end tags

    • 2 years ago
      Anonymous

      Replace with sexp and save 15%.

Your email address will not be published. Required fields are marked *