Extract multiple variables from a JSON object