DOC: fix to_json docstring nesting issue
Merge pull request #3930 from cpcloud/json-docstring-fix

DOC: fix to_json docstring nesting issue