simplify Runnable trait, inherit from ToJson