tests/testthat/_snaps/prettify.md

json_prettify works

Code
  json_prettify(x)
Output
  [
     1,
     2,
     3
  ]

  {
     "a": 1,
     "b": 2
  }

  NA
Code
  json_prettify(y)
Output
  [
     1,
     2,
     3
  ]

  {
     "a": 1,
     "b": 2
  }

  NA
Code
  json_minify(x)
Output
  [1,2,3]
  {"a":1,"b":2}
  NA
Code
  json_minify(y)
Output
  [1,2,3]
  {"a":1,"b":2}
  NA


Try the jsontools package in your browser

Any scripts or data that you put into this service are public.

jsontools documentation built on March 22, 2021, 5:06 p.m.