Easily parsing JSON in R with {jsonlite} and {purrr}

rOpenSci package or resource used*

jsonlite

What did you do?

Goal: Parse API-returned JSON into a tidy data frame and ready for analysis

Outcome:

  • Read it in and tidy with just base R + jsonlite (for-loop or lapply)
  • Read it in and tidy with purrr + jsonlite

URL or code snippet for your use case*

Link to blogpost

Sector

JSON, sports

Field(s) of application

Web access, API endpoints, JSON

Twitter handle

@thomas_mock