Non-empty Objects without keys are invalid

…but arrays are not.