package extjson
import "go.mongodb.org/mongo-driver/bson/extjson"
Index ¶
- func BsonToExtJSON(canonical bool, bson []byte) (string, error)
- func ParseArrayToBuilder(s string) (*builder.ArrayBuilder, error)
- func ParseObjectToBuilder(s string) (*builder.DocumentBuilder, error)
Functions ¶
func BsonToExtJSON ¶
BsonToExtJSON converts a BSON byte slice into an extended JSON string. If canonical is true, it will output canonical extended JSON. Otherwise, it will output relaxed extended JSON.
func ParseArrayToBuilder ¶
func ParseArrayToBuilder(s string) (*builder.ArrayBuilder, error)
ParseArrayToBuilder parses a JSON array string into a *builder.ArrayBuilder.
func ParseObjectToBuilder ¶
func ParseObjectToBuilder(s string) (*builder.DocumentBuilder, error)
ParseObjectToBuilder parses a JSON object string into a *builder.DocumentBuilder.
Source Files ¶
builder.go bytes_to_extjson.go parse.go wrappers.go
- Version
- v0.0.2
- Published
- Mar 6, 2018
- Platform
- linux/amd64
- Imports
- 14 packages
- Last checked
- 42 seconds ago –
Tools for package owners.