Remove top-level arrays from json objects.