dot and related functions
Examples
str <- '[{"name":"JSON", "good":true}, {"name":"XML", "good":false}]'
str %>% dot
#> [
#> {
#> "name": "JSON",
#> "good": true
#> },
#> {
#> "name": "XML",
#> "good": false
#> }
#> ]
str %>% index %>% dotstr(name)
#> [
#> "JSON",
#> "XML"
#> ]
'{"foo": 5, "bar": 8}' %>% dot
#> {
#> "foo": 5,
#> "bar": 8
#> }
'{"foo": 5, "bar": 8}' %>% dotstr(foo)
#> 5
'{"foo": {"bar": 8}}' %>% dotstr(foo.bar)
#> 8