port json example from peglet