I agree. It was my first proposal, but in my opinion It's not readable. And another point is the case of echo '[', because only the JSONMozReporter uses this case.

I'll rewrite this part using the Makefile-style.

Did you see how is the report? How about it?