diff options
author | Mathias Gumz <mg@2hoch5.com> | 2020-02-01 18:55:24 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-03-17 15:01:28 +0100 |
commit | 04c03416e68fd635a15cae8201872f5c29fdcca8 (patch) | |
tree | 6b10d49ed62cd8a23b4a254e144c9b90321cfc7b /src/Makefile.inc | |
parent | d83402813b624d9067416bea2e7feb70a358cf65 (diff) |
writeout: support to generate JSON output
This commit adds support to generate JSON via the writeout feature:
-w "%{json}"
It leverages the existing infrastructure as much as possible. Thus,
generating the JSON on STDERR is possible by:
-w "%{stderr}%{json}"
This implements a variant of
https://github.com/curl/curl/wiki/JSON#--write-out-json.
Closes #4870
Diffstat (limited to 'src/Makefile.inc')
-rw-r--r-- | src/Makefile.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Makefile.inc b/src/Makefile.inc index dd6b9d336..ac96f6514 100644 --- a/src/Makefile.inc +++ b/src/Makefile.inc @@ -62,6 +62,7 @@ CURL_CFILES = \ tool_util.c \ tool_vms.c \ tool_writeout.c \ + tool_writeout_json.c \ tool_xattr.c CURL_HFILES = \ @@ -107,6 +108,7 @@ CURL_HFILES = \ tool_version.h \ tool_vms.h \ tool_writeout.h \ + tool_writeout_json.h \ tool_xattr.h CURL_RCFILES = curl.rc |