lbry.go/claim/pretty.go
Jack Robison c62c175d8b
more
2017-09-12 12:02:30 -04:00

10 lines
201 B
Go

package claim
import (
"github.com/golang/protobuf/jsonpb"
)
func (claim *Claim) RenderJSON() (string, error) {
marshaler := jsonpb.Marshaler{}
return marshaler.MarshalToString(&claim.protobuf)
}