Add Indent Support in to_json
- [X] closes #12004
- [X] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry

After some of the recent refactor this should be relatively easy to do after vendoring a few updates