Skip to content

Docs are outdated. How to call JSON.stringify()? #320

Description

@ryancwalsh

I'm looking for a replacement of JSON.stringify() that I can call in my NEAR AssemblyScript contract.

I found this repo.

1edab43 commit message "Made JSON.stringify comptible with javascript JSON" (sic) was encouraging.

But

namespace _JSON {
doesn't seem to expose stringify(), from what I can tell.

And even encoder.stringify() mentioned at https://github.com/near/assemblyscript-json/blob/1edab439e33acd787671618d33c1ec4250f523c9/README.md#encoding-json doesn't seem to be available.

What am I misunderstanding? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions