odnoklassniki/one-nio

json skip serialize default primitive values

avrecko opened this issue · 2 comments

I am looking at the json serialization. A bit surprised I am not finding an option to skip serialization of default values. Is this by design?

If I really need this I am going to make a pull request. Really liking the code.

I am looking at the json serialization. A bit surprised I am not finding an option to skip serialization of default values. Is this by design?

Yep, as mentioned in JavaDoc:

/**
 * Beware: this is NOT a complete and fully compliant JSON parser!
 * Its main purpose is to decode typical simple queries without third-party dependencies.
 */

But contributions are always welcome!