skip to Main Content

xidel: how to retrieve value from JSON key containing dots(.)?

I try to retrieve 1 in : $ cat object.json { "apiVersion": "apps/v1", "kind": "Deployment", "metadata": { "annotations": { "deployment.kubernetes.io/revision": "1" } } } $ xidel -e '($json).metadata.annotations["deployment.kubernetes.io/revision"]' -s object.json { "deployment.kubernetes.io/revision": "1" } Tried '($json).metadata.annotations."deployment.kubernetes.io/revision"' '($json).metadata.annotations.("deployment.kubernetes.io/revision")' '($json).metadata.annotations.(deployment.kubernetes.io/revision)'

VIEW QUESTION

Json – Saving H2O GridSeach as CSV

I have the following code: import h2o from h2o.estimators.gbm import H2OGradientBoostingEstimator from h2o.grid.grid_search import H2OGridSearch h2o.init() data=h2o.import_file('dataset.csv') train,test= train.split_frame(ratios=[0.8]) n_trees = [50, 100, 200, 300] max_depth = [5, 6, 7] learn_rate = [0.01, 0.05, 0.1] min_rows = [10,15,20] min_split_improvement =…

VIEW QUESTION

Converting JSON Lists into Data Frames

I extracted the JSON from the following page: library(jsonlite) results <- fromJSON("https://www.reddit.com/r/gardening/comments/1196opl/tree_surgeon_butchered_my_tree_will_it_be_ok/.json") final = results$data When I inspect the output, I can see that even though that the output is in a "list" format, there appears to be a "tabular…

VIEW QUESTION
Back To Top
Search