extracting the numeric value of the json object