djson
djson copied to clipboard
Encoder
Hello @a8m I'm planning to use this package to one of my new projects, but we don't see any docs relative to the this package,
I tried to search source code for an alternative of:
json.NewEncoder(w).Encode(v)
and I couldn't find.
So my question is: does this package supports encode (from struct to []byte) or you're planning to implement something like this?
Hi @kataras Currently, djson only support JSON decoding. However, I'm working on an encoder version right now, and I didn't finished it yet. It may take me some time to make it stable and public, because in the next two weeks I'm in a vacation. I'll let you know when it will be ready. Thanks
I'll be glad to see it, I'm preparing a custom RPC-like framework and performance of json encode/decode it's a critical subject. I'll watch this repository, Thank you, good holidays!
Did you find time to develop the encoder and is it available? Thanks