As a followup to WT-2479 (and WT-2381), the dump code could be reorganized. michael.cahill writes:
I like the idea of having JSON share most of its logic with non-JSON dump: my preferred way to do that long-term is to move the logic under the cursor API but it may be expedient to fix the JSON versions of the utility first and make the structural change later.