a JsonFormer which can transform an obj to json