Unexpected token 'o', "[object Blob]" is not valid JSON

I haven't checked this yet, and I'm not 100% sure it is the solution to your problem, but XData introduced a breaking change in 5.8 that likely needs to be factored in, as the example you're referencing was written well before then. I'm guessing that getting a string from the call to RawInvokeAsync might be the culprit.

See the end of this thread for the change.