I wrote a JSON encoder/decoder for Rebol 2. I’m rewriting it for Rebol 3 and would prefer to make it available in Rebol 3 as a codec:
load %data.json
save %data.json object
decode 'json to-binary {["some","json"]}
How should I go about this?
At the time of asking, documentation on this subject is scarce.
The simple answer is that you can’t. As for why, there are several answers to that.
encodeonly takes images, binaries or strings. Maybe just having a decoder is enough for you though.parse. Do you have a native code version of your parser?I wish there was a better answer to your question right now.