# gRPC JSON transcoding

JSON transcoding allows you call gRPC methods with familiar HTTP concepts:

- HTTP verbs
- URL parameter binding
- JSON requests/responses

RESTful APIs for your ASP.NET Core gRPC services. No duplication!

##### Try it now

Send a unary request to the Greeter gRPC service. The name is sent as a URL parameter.

Hello

Send a POST request to the Greeter gRPC service. JSON is sent in the request body.

Hello
Count

View OpenAPI schema generated by Swashbuckle and send requests with Swagger UI.

Open Swagger UI

This website's source code on GitHub:

- Proto/greet.proto - Add `google.api.http` annotations to map HTTP calls to gRPC.
- Server/Server.csproj - Add `Microsoft.AspNetCore.Grpc.JsonTranscoding` NuGet package.
- Server/Startup.cs - Register gRPC JSON transcoding with `AddJsonTranscoding()`.

The service, Server/Services/GreeterService.cs, is unchanged. gRPC and REST from one service!

Find out more about using gRPC JSON transcoding here.