Removed block context from objToJSON
- [X] closes #27164
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry

Getting one failure locally which will check later but pushing to see on other platforms