fixed json sending for circular structures