如何解决如何将数据格式化为如下所述的 json?
我正在尝试使用此 API:https://pokamax.com/docs/Reseller-Api-Documentation-V1-EN.pdf
他们以此作为发布请求的示例:
order[cards_attributes][0][product_name]=standard
order[cards_attributes][0][picture]=@/front.jpg
order[cards_attributes][0][name]=Max Mustermann
order[cards_attributes][0][street]=Musterstr. 22
order[cards_attributes][0][zip]=22345
order[cards_attributes][0][city]=Berlin
order[cards_attributes][0][country]=DE
order[cards_attributes][0][text]="This is a greeting text.\nSecond line..."
order[cards_attributes][0][text_color]=#000000
=> Status: 201,Body:
{"id":1950418,"cards":[{"id":1950777,"company":null,"title":null,"name":"Tester","stre
et":null,"zip":null,"city":null,"state":null,"country":"Germany","product_name":"stand
ard","text_color":"#123456","text":"halooooo","picture_id":2386966,"font_id":24,"ship_
date":"2014-02-01"}]}
知道这是什么格式吗?我正在尝试以 json 格式发送数据,但我不知道如何对其进行格式化,而且该示例并没有真正的帮助。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。