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