1#!/usr/bin/awk -f
2
3# This script converts input of one json object per line.
4# The output will be one json object contain an array of input lines.
5
6BEGIN {
7	print "{\"events\": ["
8	first = 0
9}
10{
11	if (first == 1) {
12		print ","
13	}
14	print $0
15	first = 1
16}
17END {
18	print "]}"
19}
20