diff options
| author | Shulhan <ms@kilabit.info> | 2025-06-05 00:39:02 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2025-06-05 00:39:02 +0700 |
| commit | 7798a353509448e5d706274115f3dd79835e9af5 (patch) | |
| tree | 09fc19d2197e384340b3c88b12dff80625398110 /testdata | |
| parent | c044c4edd47c260ae6137b7116c0891cd8b979d1 (diff) | |
| download | jarink-7798a353509448e5d706274115f3dd79835e9af5.tar.xz | |
all: encode the whole BrokenlinksResult struct to JSON
Previously, we only encode the BrokenlinksResult.PageLinks.
The struct may changes in the future, so its better to encode the whole
struct now rather than changing the output later.
Diffstat (limited to 'testdata')
| -rw-r--r-- | testdata/past_result.json | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/testdata/past_result.json b/testdata/past_result.json index 3ba37c1..a5a11fe 100644 --- a/testdata/past_result.json +++ b/testdata/past_result.json @@ -1,8 +1,10 @@ { - "http://127.0.0.1:11836/page2": [ - { - "link": "http://127.0.0.1:11836/", - "code": 404 - } - ] + "page_links": { + "http://127.0.0.1:11836/page2": [ + { + "link": "http://127.0.0.1:11836/", + "code": 404 + } + ] + } } |
