parse a key from a json obj