deal with null in json