基于API响应FieldName构造嵌套JSON结构的API载荷需求
问题说明
我收到某API的响应如下:
{ "id": 306, "FieldName": "customer.info.User", }
需要基于该响应中的FieldName属性,为另一API构造请求载荷,预期输出如下:
{ "customerList": [ { "customerConditionHeader": { "entityType": "CORPORATIONS", "country": "FOR_ALL", "entityRole": "CUSTOMER" }, "customer": { "info": { "user": "some_value" } } } ] }
内容的提问来源于stack exchange,提问作者Shreyansh Jain
相关产品推荐
相关产品推荐

