1% Generated by roxygen2: do not edit by hand 2% Please edit documentation in R/prettify.R 3\name{prettify, minify} 4\alias{prettify, minify} 5\alias{prettify} 6\alias{minify} 7\title{Prettify or minify a JSON string} 8\usage{ 9prettify(txt, indent = 4) 10 11minify(txt) 12} 13\arguments{ 14\item{txt}{JSON string} 15 16\item{indent}{number of spaces to indent} 17} 18\description{ 19Prettify adds indentation to a JSON string; minify removes all indentation/whitespace. 20} 21\examples{ 22myjson <- toJSON(cars) 23cat(myjson) 24prettify(myjson) 25minify(myjson) 26} 27