git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH v7 0/2] json-writer V7

From
Ggit@jeffhostetler.com <git@jeffhostetler.com>
Date
Jun 5, 2018, 16:33 UTC
Message-ID
<20180605163358.119080-1-git@jeffhostetler.com>
From: Jeff Hostetler <jeffhost@microsoft.com>

Here is V7 of my json-writer patches. Please replace the existing V5/V6 version of jh/json-writer branch with this one.

This version cleans up the die()-vs-BUG() issue that Duy mentioned recently. It also fixes a formatting bug when composing empty sub-objects/-arrays.

It also includes a new Python-based test to consume the generated JSON.
I plan to use the json-writer routines in a followup telemetry patch series.
Jeff Hostetler (2):
  json_writer: new routines to create data in JSON format
  json-writer: t0019: add Python unit test
 Makefile                    |   2 +
 json-writer.c               | 419 ++++++++++++++++++++++++++++++++
 json-writer.h               | 113 +++++++++
 t/helper/test-json-writer.c | 572 ++++++++++++++++++++++++++++++++++++++++++++
 t/t0019-json-writer.sh      | 274 +++++++++++++++++++++
 t/t0019/parse_json_1.py     |  35 +++
 6 files changed, 1415 insertions(+)
 create mode 100644 json-writer.c
 create mode 100644 json-writer.h
 create mode 100644 t/helper/test-json-writer.c
 create mode 100755 t/t0019-json-writer.sh
 create mode 100644 t/t0019/parse_json_1.py
-- 
2.9.3
Next: git@jeffhostetler.com
Message 1 of 13 in “json-writer V7”
  1. 0/2 json-writer V7git@jeffhostetler.com, Jun 5, 2018
  2. 1/2 json_writer: new routines to create data in JSON formatgit@jeffhostetler.com, Jun 5, 2018
  3. 2/2 json-writer: t0019: add Python unit testgit@jeffhostetler.com, Jun 5, 2018
  4. Todd ZullingerJun 6, 2018
  5. Jeff KingJun 6, 2018
  6. Jeff HostetlerJun 6, 2018
  7. Ramsay JonesJun 7, 2018
  8. Todd ZullingerJun 7, 2018
  9. Jeff KingJun 7, 2018
  10. Jeff KingJun 7, 2018
  11. Jeff KingJun 7, 2018
  12. Ramsay JonesJun 7, 2018
  13. Jeff HostetlerJun 6, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.