odnoklassniki / one-nio

Unconventional I/O library for Java
Apache License 2.0
655 stars 97 forks source link

json skip serialize default primitive values #68

Open avrecko opened 1 year ago

avrecko commented 1 year ago

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?

avrecko commented 1 year ago

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

incubos commented 1 year ago

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!