Correcting children to be an JSON obj