hurl icon indicating copy to clipboard operation
hurl copied to clipboard

hurlfmt format json to hurl file

Open KesavanKing opened this issue 1 year ago • 1 comments

Thanks for this wonderful tool.

Problem to solve

Sometimes I need to get dynamic data to make the request. Getting those inputs via json is a much more easier. Now after getting the data I need to convert the json to hurl file. I see there is hurlfmt` to format hurl files to json. But there is no option to convert json into hurl files.

Proposal

Option 1: It would be great if we have the feasibility to convert json to hurl files using hurlfmt Option 2 Make hurl cli to accept json input as well.

KesavanKing avatar Jan 06 '23 04:01 KesavanKing

Hi @KesavanKing, It would be indeed useful to convert back and forth between the Hurl format and its JSON representation. We also plan to add an export to HAR (#1145), similarly we should probably also add an HAR import. (This HAR import will be smaller than the full JSON import as it does not contain the Assert/Capture info)

fabricereix avatar Jan 06 '23 07:01 fabricereix

This would be such nice addition to hurlfmt.

jlazic avatar Jul 12 '23 17:07 jlazic