renamed convertBodies to convertJson