Fixed AST representation so that JSON is properly escaped