Added array syntax to JSON output so the program will print valid JSON arrays of tags.

As the program stands, the JSON output prints dictionaries separated by newlines, which is invalid JSON and won't be useful by any JSON parser. This commit adds a leading and trailing bracket in front of the JSON formatting and adds commas between each dictionary.

This change makes the output validate properly using http://jsonlint.com