other 2 ways to convent obj2json