sile / jsone

Erlang JSON library
MIT License
291 stars 72 forks source link

Add encode_opt() to choose native or escaped utf8 code #1

Closed kuenishi closed 10 years ago

kuenishi commented 10 years ago

Sometimes I need human-readable JSON string, instead of escaped unicode. Surrogate pairs are not yet supported, but it's enough for now to me. The idea is to add a record encode_opt_v1 as a option record and takes it around like a context.

sile commented 10 years ago

This pull request looks good. Thanks for your contribution!