yaml2json: return object instead of array