Revert "Fix inconsistent json output"

Breaks recursion parameter on file.

This reverts commit e7226e104e98375529c92acc0c1f21d4d7604a07.