JSON files are really difficult to import in R as said by a user.How to import that?
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