added example of json serialization
added documentation(example of JSON serialization)