Changing the AST data structure sent to JSON.