gRPC Proto to JSON Sample
Paste a gRPC message definition and get a plausible sample JSON payload with placeholder values for each field type, handy for mocking requests before the server exists. Runs entirely in your browser.
This works right here on your device — nothing gets sent out.
Example
gRPC Proto to JSON Sample
message User {
string id = 1;
string email = 2;
int32 age = 3;
repeated string roles = 4;
bool is_active = 5;
} Example shown — replace it with your own message definition.
Sample JSON payload
{
"id": "usr_8f3a1c",
"email": "jane.doe@example.com",
"age": 29,
"roles": ["admin", "billing"],
"isActive": true
} How it works
- Paste a gRPC message definition.
- Each field gets a plausible placeholder value based on its type.
- Copy the generated JSON straight into a mock or test fixture.
FAQ
Where do the sample values come from?
Each field type maps to a plausible placeholder — strings become realistic-looking text, numbers become sensible values, repeated fields become short arrays — so the output reads like a real payload, not just type names.
Can I use this output to mock an API response?
Yes — it's meant for exactly that: pasting into a mock server, a test fixture, or a Postman example while the real service is still being built.
Does this call a real gRPC service?
No — this only reads the message definition you paste in. Nothing is sent over the network.
How we compare
| Feature | Online Tool Store | Hand-writing a mock JSON payload | A full gRPC mocking server |
|---|---|---|---|
| No manual typing of sample values | Yes | No | Yes |
| No server or setup required | Yes | Yes | No |
| Ready in seconds | Yes | Slow | Setup overhead |
For a quick mock payload while a service is still under development, this beats hand-typing sample JSON or standing up a mock server.