add variable `var` to key 'f' of first element in json data `data`,data[0]['f'] = var