title: How to print the first ten rows of a JSON file in R
body: <p>I have an R dataframe and converted it to json format using the jsonlite package</p>
  
  <pre><code>jsonData &lt;- toJSON(dataset)
  </code></pre>
  
  <p>I want to validate if the conversion was successful, the dataset is very large. How do I print the first 5 rows in the json file?</p>