implement convert object to string json