Added table as Allowed `orient` Value in to_json Docs(#22272)
- [x] closes #22272
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry

Thanks @NikhilKumarM !