![]() |
simdjson
0.3.1
Ridiculously Fast JSON
|
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) |
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.
|
inlinenoexcept |
Create a new minifier.
| _value | The document or element to minify. |
Definition at line 1071 of file document.h.
1.8.17