fullstorydev / grpcurl

Like cURL, but for gRPC: Command-line tool for interacting with gRPC servers
MIT License
10.36k stars 497 forks source link

Allow to use yaml instead of json #388

Open anti-social opened 1 year ago

anti-social commented 1 year ago

Yaml is more convenient for writing and modifying big chunks of data. So my suggest is to add yaml support.

It is possible to do in 2 ways:

jhump commented 1 year ago

As a work-around, you can use the tool yq and pipe your input through that and into the stdin of grpcurl. IIRC, yq . will print the input as JSON.