#foreach( $instance in $ctx.result.instanceGroup.instanceSet ) #set($instance = $util.urlEncode($instance)) #end $util.toJson($ctx.result)