setting tags to list before json serializing