extism/js-sdk

Provide Helper Functions for Encoding/Decoding Input/Output

Closed this issue · 2 comments

Currently it's very verbose to convert raw binary to JSON. It must be decoded to a string first (unless there is a way to go directly to JSON)

example code:

JSON.parse((new TextDecoder).decode(vowelsCounted))

Addressed in #21!

Fixed by #21!