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
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!
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
assemblyscript-json/assembly/JSON.ts
Line 85 in 1edab43
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!