add define query for jsonm