Fix treacherous JSON path bug that caused silent and mysterious data omissions
depending on the order of the internal JSON.

How I'd missed this I've no idea.