Same comment here -- any chance this could be invalid JSON? If they are provided by the user, they might be invalid, and so this call needs to be in a try/except block.