Use json filter to avoid Uncaught SyntaxError: Unexpected identifier