# Deep linking syntax

The deeplink parameter value is a JSON array of data source states keyed by data source ID.

Data source state consists of query functions and `NavByValue` JSON objects. The syntax is as follows:

    deepLink=[
      { "dataSourceId":
        {
          "queryFunctions": [data source json as defined elsewhere],
          "navByValue": {
            "dimension1":"dimval1",
            "dimension2":"dimval2",
            "dimension3":["dimval","dimval","dimval"]
          }
        }
      },
      { "dataSourceId2": ...},
      { "dataSourceId3": ...}
    ]

Below is an example of the JSON array:

    http://localhost:8080/web/guest?deeplink=[
    {
    	"default": {
    		"queryFunctions":[
    		{
    			"class":"RecordFilter",
    			"recordFilter":"Designation:Best Buy"
    		},
    		{
    			"class":"RangeFilter",
    			"property":"P_Price","rangeOperator":"BTWN","value1":"50","value2":"100"
    		}
    		],
    		"navByValue":{
    			"Wine Type":"Red",
    			"Region":"Other France",
    			"Body":["Fresh","Full","Rich","Ripe"]
    		}
    	}
    },
    {	"v7-wine":{
    		"queryFunctions":[
    		{
    			"class":"RecordFilter",
    			"recordFilter":"Designation:Best Buy"
    		}
    		],
       		"navByValue":{
    			"Wine Type":"Red",
    			"Region":"Other France",
    			"Body":["Fresh","Full","Rich","Ripe"]
    		}
    }
    ]

Note: For more information about data source syntax in general, see Chapter 3 in this guide.