FHIR Chat · Invalid JSON · implementers

Stream: implementers

Topic: Invalid JSON


view this post on Zulip Grahame Grieve (Jul 20 2018 at 20:19):

I am just fixing a very long standing bug in the build tool - it goes back quite a way

view this post on Zulip Grahame Grieve (Jul 20 2018 at 20:21):

though not as far back as R3, apparently.

view this post on Zulip Grahame Grieve (Jul 20 2018 at 20:28):

I have been escaping ' like \' in json strings. apparently this is not valid (different from javascript, and I didn't pick that up)

view this post on Zulip Gabriel Bezerra (Aug 02 2018 at 14:13):

How is this going? The last time I tried to download the definitions from build.fhir.org they still had the illegal \'s

view this post on Zulip Grahame Grieve (Aug 02 2018 at 18:50):

where please?

view this post on Zulip Gabriel Bezerra (Aug 03 2018 at 10:30):

I just downloaded and tried it. The failing files were:

  • v2-tables.json
  • v3-codesystems.json
  • valuesets.json

See:

$ for i in *.json; do echo $i && jq . $i >> /dev/null; done
conceptmaps.json
dataelements.json
extension-definitions.json
profiles-others.json
profiles-resources.json
profiles-types.json
search-parameters.json
v2-tables.json
parse error: Invalid string: control characters from U+0000 through U+001F must be escaped at line 775, column 2556
v3-codesystems.json
parse error: Invalid string: control characters from U+0000 through U+001F must be escaped at line 163, column 16186
valuesets.json
parse error: Invalid string: control characters from U+0000 through U+001F must be escaped at line 61734, column 8437

view this post on Zulip Gabriel Bezerra (Aug 21 2018 at 11:57):

Hi @Grahame Grieve,

maybe you've fixed the former issue. I just tried downloading the file now and still got issues with v2-tables, v3-codesystems and valuesets:

$ curl http://build.fhir.org/definitions.json.zip -o definitions.json.zip
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 6689k  100 6689k    0     0   771k      0  0:00:08  0:00:08 --:--:--  996k
$ unzip definitions.json.zip
Archive:  definitions.json.zip
  inflating: version.info
  inflating: profiles-types.json
  inflating: profiles-resources.json
  inflating: profiles-others.json
  inflating: extension-definitions.json
  inflating: search-parameters.json
  inflating: valuesets.json
  inflating: v2-tables.json
  inflating: v3-codesystems.json
  inflating: conceptmaps.json
  inflating: dataelements.json
  inflating: fhir.schema.json.zip
$ for i in *.json; do echo $i && jq . $i >> /dev/null; done
conceptmaps.json
dataelements.json
extension-definitions.json
profiles-others.json
profiles-resources.json
profiles-types.json
search-parameters.json
v2-tables.json
parse error: Invalid string: control characters from U+0000 through U+001F must be escaped at line 793, column 2556
v3-codesystems.json
parse error: Invalid string: control characters from U+0000 through U+001F must be escaped at line 166, column 16186
valuesets.json
parse error: Invalid string: control characters from U+0000 through U+001F must be escaped at line 65843, column 8437

view this post on Zulip Grahame Grieve (Aug 22 2018 at 00:40):

ok thanks. fixed. Should be updated in a bout 30min

view this post on Zulip Gabriel Bezerra (Aug 23 2018 at 09:15):

It worked. Thanks


Last updated: Apr 12 2022 at 19:14 UTC