simdjson  0.3.1
Ridiculously Fast JSON
Public Member Functions | List of all members
simdjson::minify< T > Class Template Reference

Minifies a JSON element or document, printing the smallest possible valid JSON. More...

Public Member Functions

 minify (const T &_value) noexcept
 Create a new minifier. More...
 
 operator std::string () const noexcept
 Minify JSON to a string.
 
std::ostream & print (std::ostream &out)
 Minify JSON to an output stream.
 
std::ostream & print (std::ostream &out)
 
std::ostream & print (std::ostream &out)
 
std::ostream & print (std::ostream &out)
 
std::ostream & print (std::ostream &out)
 
std::ostream & print (std::ostream &out)
 
std::ostream & print (std::ostream &out)
 
std::ostream & print (std::ostream &out)
 

Detailed Description

template<typename T>
class simdjson::minify< T >

Minifies a JSON element or document, printing the smallest possible valid JSON.

dom::parser parser; element doc = parser.parse(" [ 1 , 2 , 3 ] "_padded); cout << minify(doc) << endl; // prints [1,2,3]

Definition at line 35 of file document.h.

Constructor & Destructor Documentation

◆ minify()

template<typename T >
simdjson::minify< T >::minify ( const T &  _value)
inlinenoexcept

Create a new minifier.

Parameters
_valueThe document or element to minify.

Definition at line 1071 of file document.h.


The documentation for this class was generated from the following file: