Check dump cursor for JSON flag early in the call stack #1031