[wp-trac] [WordPress Trac] #56864: I want to put comments in theme.json.

WordPress Trac noreply at wordpress.org
Thu Oct 20 15:57:04 UTC 2022


#56864: I want to put comments in theme.json.
-----------------------------+------------------------------
 Reporter:  nendeb55         |       Owner:  (none)
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  General          |     Version:  trunk
 Severity:  normal           |  Resolution:
 Keywords:  close            |     Focuses:
-----------------------------+------------------------------
Changes (by jorbin):

 * keywords:   => close


Comment:

 JSON doesn't support comments.  It's unfortunate, but if something like
 this were to be put in place, theme.json would not be interoperable JSON.
 When someone sees the `.json` extension they assume it is JSON that can be
 parsed and worked with as JSON. That isn't something I think we should
 break. As such, i think this should be closed as `wontfix`.

 If an individual or team is facing challenges here, I think it might be
 better for them to use something like [https://github.com/komkom/jsonc
 jsonc] and to have a build process convert it to json.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56864#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list