itchyny / gojq

Pure Go implementation of jq
MIT License
3.3k stars 119 forks source link

Raw output #199

Closed amlwwalker closed 1 year ago

amlwwalker commented 1 year ago

I notice there is a flag that has been merged from a PR to allow the client to output raw content, I am wondering how to do this using the package programatically.?

What is the mechanism to get the output as "raw" or is this something that is expected to just do manually (by stripping quotes for instance?)

itchyny commented 1 year ago

You can implement the behavior by checking the type of result values, and just print it if it is a string.