The use of json in R

Hi all,

In the below link, they mentioned about converting json to dataframe. My question, we can directly create a dataframe. Really i am not understanding the use of json here. Please guide me

https://www.tutorialspoint.com/r/r_json_files.htm

Here's a helpful vignette, 'Getting started with JSON and jsonlite'.

Thanks for the time. I did see this. It says,

"Its main strength is that it implements a bidirectional mapping between JSON data and the most important R data types. Thereby we can convert between R objects and JSON without loss of type or information, and without the need for any manual data munging. This is ideal for interacting with web APIs, or to build pipelines where data structures seamlessly flow in and out of R using JSON."

But for me it is too technical to understand. is it possible for you (many thanks) to state an example on why Json is useful:) ?

Simple answer, to communicate with other systems, for example most APIs accept and return data in JSON format.

1 Like

Got it. Thanks a lot

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.