added conversion of bodies to worldToJson