Expose the private field with a macro.
Check dump cursor for JSON flag early in the call stack #1031