r - How to introduce NA's for missing elements from converting a json object to a data frame -


how introduce na's data frame elements don't exist json array?

library(jsonlite) json <- "[\n {\n \"input\": \"211\",\n\"date\": \"2015-03-27t07:36:37.581z\" \n},\n{\n \"input\": \"215\",\n\"stop\": \"jewel lake , strawberry nne: 0215\",\n\"date\": \"2015-03-27t07:36:44.224z\" \n} \n]" json_list <- fromjson(json) 

i expecting data frame 2 rows, columns listed index, , elements json array if exist or not in example input, stop, , date.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -