News for hackers. Stuff that matters.
Re:Fixing JSON by tptacek on Friday August 26, 2016 @02:07PM (#12368084)
How is that the context? In the sense of the intersection between Javascript and JSON, trailing commas have pretty much always worked in C, which is something all of us who write code that generates C rely on, like a lot.
Re:Fixing JSON by mzs on Friday August 26, 2016 @03:06PM (#12368525)
I googled and trailing comma was allowed since C89, I was wrong. For code that generates code I always did something like this cause of that mistake:

  { a, b
  , c
  ...
  , z
  };