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!

Share Improve this question edited Jan 22 at 18:38 andrewJames 21.9k11 gold badges29 silver badges64 bronze badges asked Jan 22 at 4:55 SOSSOS 5391 gold badge4 silver badges19 bronze badges 1
  • 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
Add a comment  | 

1 Answer 1

Reset to default 1

You 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