admin管理员组文章数量:1201411
I'm trying to create a FHIR Bundle with Binary Resource, here is my bundle:
{
"resourceType": "Bundle",
"id": "bundle-transaction",
"meta": {
"lastUpdated": "2018-03-11T11:22:16Z"
},
"type": "transaction",
"entry": [
{
"resource": {
"resourceType": "Binary",
"contentType": "application/pdf",
"data": "a"
},
"request": {
"method": "POST",
"url": "Binary"
}
},
]
}
But I keep getting invalid JSON error, I think the error is at Bundle.entry.request.url
field, but I'm not sure. Can anyone help me take a look? Thanks!
I'm trying to create a FHIR Bundle with Binary Resource, here is my bundle:
{
"resourceType": "Bundle",
"id": "bundle-transaction",
"meta": {
"lastUpdated": "2018-03-11T11:22:16Z"
},
"type": "transaction",
"entry": [
{
"resource": {
"resourceType": "Binary",
"contentType": "application/pdf",
"data": "a"
},
"request": {
"method": "POST",
"url": "Binary"
}
},
]
}
But I keep getting invalid JSON error, I think the error is at Bundle.entry.request.url
field, but I'm not sure. Can anyone help me take a look? Thanks!
- I'm voting to close this question, as "caused by a typo". If you have access to a decent JSON validator (for example, https://jsonlint.com/), that can help you in the future. – andrewJames Commented Jan 22 at 18:26
1 Answer
Reset to default 1You have a trailing comma on the third line from the bottom that shouldn’t be there
本文标签: jsonUnparsable FHIR Bundle with Binary Resource Invalid URLStack Overflow
版权声明:本文标题:json - Unparsable FHIR Bundle with Binary Resource: Invalid URL - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1738585893a2101426.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论