mongo-drivergo.mongodb.org/mongo-driver/bson/extjson Index | Files

package extjson

import "go.mongodb.org/mongo-driver/bson/extjson"

Index

Functions

func BsonToExtJSON

func BsonToExtJSON(canonical bool, bson []byte) (string, error)

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
windows/amd64
Imports
14 packages
Last checked
4 minutes ago

Tools for package owners.