Add a sample explaining the use of json serializer.

Signed-off-by: Clement Escoffier <clement.escoffier@gmail.com>