ad function of parsing json obj