• lad@programming.dev
    link
    fedilink
    arrow-up
    4
    ·
    2 days 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

    • jaybone@lemmy.zip
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 days ago

      To add to other replies, I think there are some Java libraries that use this method name, or close to it. It’s so common that the term is well recognized on its own, regardless of the exact method names in whatever library or language.

    • DaleGribble88@programming.dev
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      2 days ago

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

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

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

      And it returned - JSON string of your argument.