[jbosstools-issues] [JBoss JIRA] (ERT-387) JSON editor "supports" comments, not supported by JSON [EBZ#499705]

Nick Boldt (JIRA) issues at jboss.org
Mon Feb 5 12:05:03 EST 2018


     [ https://issues.jboss.org/browse/ERT-387?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nick Boldt updated ERT-387:
---------------------------
    Fix Version/s: Oxygen.3 (4.7)
                       (was: Neon.2 (4.6))


> JSON editor "supports" comments, not supported by JSON [EBZ#499705]
> -------------------------------------------------------------------
>
>                 Key: ERT-387
>                 URL: https://issues.jboss.org/browse/ERT-387
>             Project: Eclipse Release Train
>          Issue Type: Task
>          Components: WTP Source Editing
>            Reporter: Friendly Jira Robot
>            Assignee: Snjezana Peco
>            Priority: Trivial
>              Labels: bzira, wst.json
>             Fix For: Oxygen.3 (4.7)
>
>
> I tried commenting a line in a JSON file using the common syntax "/* comment */":
> /*"jquery/jquery-min": "1.12",*/
> This caused the line to become blue, so I figured JSON must support comments. But as mentioned in https://en.wikipedia.org/w/index.php?title=JSON&oldid=734431215 this is not the case.
> Ticket #495578 explains that Angelo ZERR decided to support "JSON comments" since .jshintrc (no idea what that is) uses it. In my opinion, this should be disabled by default, but for sure, it should be possible to disable. Currently, all JSON highlights are mandatory (the checkboxes are disabled).



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jbosstools-issues mailing list