Implemented tags.json writer.
Written test for tags.json writer.