Skip to content

go-sqlparser/mson

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mson

A parser for MongoDB shell "dumps"

Convert MongoDB "extended" JSON / BSON to Go maps or JSON.

This is mostly a JSON parser modified to support MongoDB shell BSON objects (BinData, NumberLong, ISODate). It also support parsing multiple consecutive object (i.e. a stream of objects not wrapped into an array).

The parser returns a Go map (map[string]interface{}) or array ([]interface{}).

A command line tool is available in cmd/mson that converts the input MongoDB file to JSON. The tool can also skip initial "garbage" that may have been written by MongoDB shell before the real data (see --prologue option).

About

A parser for MongoDB shell "dumps"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 97.9%
  • ANTLR 2.1%