Feature request: output an error as json::Value
or serde_json::Value
directly
#360
Labels
enhancement
New feature or request
json::Value
or serde_json::Value
directly
#360
miette
has aJSONReportHandler
which allows you to print errors as JSON. However, that results in writing text-format JSON to afmt::Write
r, and if you want the JSON as ajson::Value
orserde_json::Value
, you have to re-parse the string AFAICT. (If I'm missing something or misunderstanding something, I apologize and please correct me :) )It would be great if
miette
had a function for outputting an error directly asjson::Value
orserde_json::Value
.The text was updated successfully, but these errors were encountered: