djson icon indicating copy to clipboard operation
djson copied to clipboard

Encoder

Open ghost opened this issue 9 years ago • 3 comments
trafficstars

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?

ghost avatar Oct 01 '16 15:10 ghost

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

a8m avatar Oct 01 '16 17:10 a8m

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!

ghost avatar Oct 01 '16 18:10 ghost

Did you find time to develop the encoder and is it available? Thanks

ossie-git avatar Oct 02 '19 21:10 ossie-git