Fix unassociative JSON in attributes