Sha256: dbc093398fc27fe51b1c3af2a0e9cc3f31cb822b84eaed4688af10d22a567e2f
Contents?: true
Size: 565 Bytes
Versions: 16
Compression:
Stored size: 565 Bytes
Contents
// Copyright (c) 2018-2020 Dr. Colin Hirsch and Daniel Frey // Please see LICENSE for license or visit https://github.com/taocpp/json/ #include <iostream> #include <tao/json.hpp> int main( int argc, char** argv ) { if( argc != 2 ) { std::cerr << "usage: " << argv[ 0 ] << " file.json" << std::endl; std::cerr << " parses the json file and writes it to stdout as pretty json" << std::endl; return 1; } tao::json::events::to_pretty_stream consumer( std::cout, 3 ); tao::json::events::from_file( consumer, argv[ 1 ] ); return 0; }
Version data entries
16 entries across 16 versions & 1 rubygems