Tcl Library Source Code

View Ticket
Login
Ticket UUID: e15c2a7ce1a4561c982b9b3e7c0b46c168042064
Title: json::write proposals: tdom formatting, true, false, null
Type: RFE Version: main
Submitter: oehhar Created on: 2026-02-02 15:49:20
Subsystem: json :: write Assigned To:
Priority: 5 Medium Severity: Minor
Status: Open Last Modified: 2026-04-21 10:21:20
Resolution: None Closed By: nobody
    Closed on:
Description:
This tickets tries to look in some possible improvements to json::write:

   *   use tdom to format a json string [5f7933e028]
   *   new functionality for json boolean
   *   implement a json null output possibility.

Branch: [e15c2a7c-json-write-hao]

Currently, we have a failing test 4.0.1 due to a tdom error. See ticket [https://www.tdom.org/index.html/info/b3d38f063f899f93].

Harald
User Comments: oehhar added on 2026-04-21 10:21:20:

Add commands bool and string-null with commit [d6d4f017f5].

The RFE is IMHO feature-complete and may be merged.

Thanks for all, Harald


oehhar added on 2026-04-21 09:26:39:

Thanks! tdom output accepted in test by commit [dc6ccf0426].

Harald


pointsman added on 2026-02-10 06:59:24:
This is not necessary a bug. It is a legal JSON serialization for this data.
If \x7f is escaped in the output is a decition of the library maintainer.

See [https://www.tdom.org/index.html/tktview/b3d38f063f] for a more
detailed discussion.

oehhar added on 2026-02-09 17:54:41:

Thanks Rolf for the always great insight ! Perhaps, there is a bug in tcllib and \x7f should not be escaped.

Thanks for all, Harald


pointsman added on 2026-02-09 17:39:47:
AFAICT there is no tDOM bug here. See my comments at [https://www.tdom.org/index.html/info/b3d38f063f899f93].