add json serialization feature to platform