% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils_data.R
\name{toon_reduction}
\alias{toon_reduction}
\title{Calculate Character Reduction from R Object to TOON Format}
\usage{
toon_reduction(obj, ...)
}
\arguments{
\item{obj}{Any R object (list, vector, data frame, or string).}

\item{...}{Additional arguments passed to jsonlite::toJSON()}
}
\value{
A numeric value representing the character reduction ratio (0 to 1).
}
\description{
Calculates the percentage reduction in the number of characters when
converting an R object to its TOON string representation compared to
its JSON representation (or the string itself if the input is a single string).
}
