imhotep icon indicating copy to clipboard operation
imhotep copied to clipboard

json validation

Open justinabrahms opened this issue 12 years ago • 7 comments

It would be nice to have a simple linter that would validate .json files are actually valid json.

justinabrahms avatar Feb 13 '14 19:02 justinabrahms

What do you think about also detecting package.json and running against pjv for better suggestions on npm files? This would of course be in addition to a standard json validation. This could always be built as a separate plugin entirely.

meandavejustice avatar Mar 22 '14 04:03 meandavejustice

Also I just about have the standard validation done, just having trouble with python regex... as mention in previous tweet...

meandavejustice avatar Mar 22 '14 04:03 meandavejustice

Regarding the pjv stuff that is doable, but I need a fuzzy json linter for chef json. chef is dumb and allows for comments in json.

scottjab avatar Mar 24 '14 22:03 scottjab

@scottjab Nice, I'll keep that in mind. You think we should provide and option? or detect chef files?

meandavejustice avatar Mar 24 '14 23:03 meandavejustice

Make a working "this is real json" validator. We can subclass it or make separate ones to validate less-than-real json.

justinabrahms avatar Mar 24 '14 23:03 justinabrahms

works 4 me

meandavejustice avatar Mar 25 '14 00:03 meandavejustice

+1 on that.

scottjab avatar Mar 25 '14 18:03 scottjab