Add an example on how to change serialization mode

It is not clear how to change default options
Merge pull request #159 from leschenko/patch-1

Add an example on how to change serialization mode