• jaybone@lemmy.zip
    link
    fedilink
    English
    arrow-up
    10
    ·
    12 hours ago

    Yeah you don’t have to be using JavaScript to use json. Yes I know it’s part of the name, but it’s just an object notation which is the other part of the name, and this has become widely accepted for use in nearly all popular languages and frameworks.

    • lad@programming.dev
      link
      fedilink
      arrow-up
      3
      ·
      9 hours ago

      Are there any other languages that would also have Json.Stringify? I only read JS sometimes and never write those, so I may be wrong about that.

      JSON itself is fine, yeah

      • DaleGribble88@programming.dev
        link
        fedilink
        English
        arrow-up
        1
        ·
        5 minutes ago

        Python has a popular library called “Flask” that uses stringify(). Although, python has an implementation in its standard library called jason.dumps()

      • anomnom@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        7 hours ago

        Not sure but with Ruby it was JSON.generate(ruby_array/hash/object).

        And it returned - JSON string of your argument.