xref: /aosp_15_r20/external/golang-protobuf/encoding/protojson/doc.go (revision 1c12ee1efe575feb122dbf939ff15148a3b3e8f2)
1*1c12ee1eSDan Willemsen// Copyright 2019 The Go Authors. All rights reserved.
2*1c12ee1eSDan Willemsen// Use of this source code is governed by a BSD-style
3*1c12ee1eSDan Willemsen// license that can be found in the LICENSE file.
4*1c12ee1eSDan Willemsen
5*1c12ee1eSDan Willemsen// Package protojson marshals and unmarshals protocol buffer messages as JSON
6*1c12ee1eSDan Willemsen// format. It follows the guide at
7*1c12ee1eSDan Willemsen// https://protobuf.dev/programming-guides/proto3#json.
8*1c12ee1eSDan Willemsen//
9*1c12ee1eSDan Willemsen// This package produces a different output than the standard "encoding/json"
10*1c12ee1eSDan Willemsen// package, which does not operate correctly on protocol buffer messages.
11*1c12ee1eSDan Willemsenpackage protojson
12