avoiding json formats requirement for query construction