start of json serialization