From 75b19d68e0a2dfac6467b0622cf6b89a9a0aaaf8 Mon Sep 17 00:00:00 2001 From: Scott Chamberlain Date: Mon, 9 May 2016 15:39:01 -0700 Subject: [PATCH] readme fixes --- README.Rmd | 3 +-- README.md | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/README.Rmd b/README.Rmd index 049be0a..80b3f2f 100644 --- a/README.Rmd +++ b/README.Rmd @@ -115,8 +115,7 @@ x <- '{"user":"stedolan","titles":["JQ Primer", "More JQ"]}' jq(x, '{user, title: .titles[]}') x %>% index() x %>% select(user, title = `.titles[]`) -x %>% select(user, title = `.titles[]`) %>% combine -x %>% select(user, title = `.titles[]`) %>% combine %>% jsonlite::validate() +jq(x, '{user, title: .titles[]}') %>% jsonlite::toJSON() %>% jsonlite::validate() ``` #### string operations diff --git a/README.md b/README.md index 153ed34..ba057c7 100644 --- a/README.md +++ b/README.md @@ -166,8 +166,7 @@ x <- '{"user":"stedolan","titles":["JQ Primer", "More JQ"]}' jq(x, '{user, title: .titles[]}') x %>% index() x %>% select(user, title = `.titles[]`) -x %>% select(user, title = `.titles[]`) %>% combine -x %>% select(user, title = `.titles[]`) %>% combine %>% jsonlite::validate() +jq(x, '{user, title: .titles[]}') %>% jsonlite::toJSON() %>% jsonlite::validate() ``` #### string operations