I had a similar issue. For me, it was simply that I had a valid JSON string but not a JSON object. Simply using the json.loads(data) function in my Python code did the trick for me. There should be a similar library for whatever language you’re using.