added support for structured json queries and nested param junctions