print ToJson method