Default names for json objects.

In XML MT docs, everything has a name by definition. This solution is a little weird, but so MT's
requirement that everything (even members of an array) have a name is also pretty weird so we'll
let this one slide for now.
Default name fix for JSON, ported from Java.