update json serialization