On Wed, Mar 5, 2014 at 9:59 AM, Andre Tannus <
andre....@gmail.com> wrote:
> Since Netbeans 7.3, the json parser has been complaining that // is
> unsupported in json spec.
It's right, json doesn't support comments.
>
> // fails json validation
> {
> // comment
> "foo": "bar"
> }
>
> I can't rename as .js, because a literal object declaration on its own is
> apparently illegal too.
>
> // fails validation
> {"foo":"bar"}
It's wrong, that's perfectly legal js (albeit useless, as the value is
discarded).
>
> // passes validation, but chokes plovr.
> a={"foo":"bar"}
>
> Does anyone have a workaround for this?
My approach is to find tools that work for me rather than changing my
workstyle to comply with tools. (i.e. fix the tool, not yourself). No
issues with this in emacs ;)
Cheers,
-ilia