Skip to content

Closes #211 -- handle missing input consistently#261

Open
MichaelChirico wants to merge 1 commit intojeroen:masterfrom
MichaelChirico:null_json
Open

Closes #211 -- handle missing input consistently#261
MichaelChirico wants to merge 1 commit intojeroen:masterfrom
MichaelChirico:null_json

Conversation

@MichaelChirico
Copy link
Copy Markdown
Contributor

This allows the following syntax to work without error:

DF = data.frame(json = c('{"hey": 1, "you": 2}', NA_character_, '{"hey": 3, "you": 4}', stringsAsFactors = FALSE)
do.call(rbind, lapply(DF$json, fromJSON))
#    hey you
# 2    1   2
# 21   3   4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant