Q's by categ + func to convert selected rows->JSON