华为云的身份证识别的返回值是json格式,在deveco studio中怎么转成java
用fastjson反序列化
// Entity 为你的Java实体类, params为你接收的字符串
Entity req = JSONObject.parseObject(params, Entity.class);
JS可以参考:https://developer.harmonyos.com/cn/docs/documentation/doc-references/js-components-basic-text-0000000000611633 ETS可以参考:https://developer.harmonyos.com/cn/docs/documentation/doc-references/ts-basic-components-text-0000001111581280