LHNCBC / skr_web_python_api

SKR Web API: Python implementation
Other
37 stars 7 forks source link

Unable to get JSON Output #4

Open kevon217 opened 2 years ago

kevon217 commented 2 years ago

How can I get the JSON output from the response.json() object?

My call is: 'metamap -Z (2020AB) -V (USABase) -C -c -I -G --JSONf 2 -m -y -i -z –sldiID'

The MetaMap JSON documentation said to use the cmd 'metamap.JSON', however, that command resulted in errors, so I just used 'metamap'.

KimBenjaminTang commented 2 years ago

Hey if it helps, you can check out the issue I just opened: https://github.com/lhncbc/skr_web_python_api/issues/6. I think we are facing the same problem and my current workaround is to trim the first part of the response before the actual JSON starts.