canvas-lms
canvas-lms copied to clipboard
api /api/v1 returned json contains values without string quotes
Hi. On a self-hosted canvas instance api endpoints (for example /api/v1/courses/some-course-id/assignments
) return json containing attributes like (url, html_url
) with their values not being strings (meaning, not being wrapped in " "
). Obviously trying to parse json containing these values breaks.
On any other canvas instance I've tried (all of them deployed on dlg.instructure), a GET request using browser returns a valid json from that same endpoint (url, html_url
values are wrapped with string quotes).
What could be that causes canvas to return this kind of json?
I've never seen Canvas do anything like that. I have heard of browsers or other http services causing issues like that. What are you using to request the API data?