JSON files are really difficult to import in R as said by a user.How to import that?

506    Asked by MichaelMILLER in Data Science , Asked on Nov 29, 2019
Answered by Michael MILLER

One way of importing JSON files is by using the library rjson. Then we can do the following

library("rjson")

json_file="http://api.worldbank.org/country?per_page=10®ion=OED&lendingtype=LNX&format=json"

json_data <- fromJSON(file=json_file)

Here json_file is a web page which is in JSON format



Your Answer

Interviews

Parent Categories