Skip to content

Commit

Permalink
rename json
Browse files Browse the repository at this point in the history
  • Loading branch information
rez1dent3 committed Jul 7, 2024
1 parent 1eb2572 commit 997b66e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions protoc-gen-gripmock/server.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"net/http"

"github.com/gripmock/environment"
"github.com/gripmock/json"
gmjson "github.com/gripmock/json"
jsonpb "google.golang.org/protobuf/encoding/protojson"
"google.golang.org/grpc"
"google.golang.org/grpc/metadata"
Expand Down Expand Up @@ -333,7 +333,7 @@ func findStub(ctx context.Context, conf environment.Config, service, method stri
var buffer bytes.Buffer

// Convert the search result to JSON.
if err := json.Encode(&buffer, searchStub.JSON200.Data); err != nil {
if err := gmjson.Encode(&buffer, searchStub.JSON200.Data); err != nil {
return err
}

Expand Down

0 comments on commit 997b66e

Please sign in to comment.