Adjusted conversion of tag/categories to array

Instead of straight out to json, just put into array and allow user to
decide.