Sha256: 5c6ea2741947dbf90f2e0e9488ad41dbbff36411bea51722cf72e0a4d26cc9fe

Contents?: true

Size: 564 Bytes

Versions: 16

Compression:

Stored size: 564 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.jaxn" << std::endl;
      std::cerr << "  parses the jaxn file and writes it to stdout as ubjson" << std::endl;
      return 1;
   }
   tao::json::ubjson::events::to_stream consumer( std::cout );
   tao::json::jaxn::events::from_file( consumer, argv[ 1 ] );
   return 0;
}

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
couchbase-3.0.0.alpha.4-x86_64-linux ext/third_party/json/src/example/json/jaxn_to_ubjson.cpp
couchbase-3.0.0.alpha.4-x86_64-darwin-19 ext/third_party/json/src/example/json/jaxn_to_ubjson.cpp
couchbase-3.0.0.alpha.4-universal-darwin-19 ext/third_party/json/src/example/json/jaxn_to_ubjson.cpp
couchbase-3.0.0.alpha.4 ext/third_party/json/src/example/json/jaxn_to_ubjson.cpp
couchbase-3.0.0.alpha.3-x86_64-linux ext/third_party/json/src/example/json/jaxn_to_ubjson.cpp
couchbase-3.0.0.alpha.3-x86_64-darwin-19 ext/third_party/json/src/example/json/jaxn_to_ubjson.cpp
couchbase-3.0.0.alpha.3-universal-darwin-19 ext/third_party/json/src/example/json/jaxn_to_ubjson.cpp
couchbase-3.0.0.alpha.3 ext/third_party/json/src/example/json/jaxn_to_ubjson.cpp
couchbase-3.0.0.alpha.2-x86_64-linux ext/third_party/json/src/example/json/jaxn_to_ubjson.cpp
couchbase-3.0.0.alpha.2-x86_64-darwin-19 ext/third_party/json/src/example/json/jaxn_to_ubjson.cpp
couchbase-3.0.0.alpha.2-universal-darwin-19 ext/third_party/json/src/example/json/jaxn_to_ubjson.cpp
couchbase-3.0.0.alpha.2 ext/third_party/json/src/example/json/jaxn_to_ubjson.cpp
couchbase-3.0.0.alpha.1-x86_64-linux ext/third_party/json/src/example/json/jaxn_to_ubjson.cpp
couchbase-3.0.0.alpha.1-x86_64-darwin-19 ext/third_party/json/src/example/json/jaxn_to_ubjson.cpp
couchbase-3.0.0.alpha.1-universal-darwin-19 ext/third_party/json/src/example/json/jaxn_to_ubjson.cpp
couchbase-3.0.0.alpha.1 ext/third_party/json/src/example/json/jaxn_to_ubjson.cpp