Examples: Start an Interview with Entity Level Data
Example 1. Seeding the values "alfred" and "bob" for the entity level attribute "child_name"
Using a JSON snippet, the JSON would be:
{"children":[{"child_name":"alfred"},{"child_name":"bob"}]}
The URL encoding for this JSON is:
%7B%22children%22%3A%5B%7B%22child_name%22%3A%22alfred%22%7D%2C%7B%22child_name%22%3A%22bob%22%7D%5D%7D
In a URL this would be:
http://<site>/web-determinations/startsession/HealthyEating?seedData=%7B%22children%22%3A%5B%7B%22child_name%22%3A%22alfred%22%7D%2C%7B%22child_name%22%3A%22bob%22%7D%5D%7D
Example 2. Seeding the value "3" for the attribute "child_servings_fruit" for the child "alfred", and seeding the value "2" for the attribute "child_servings_veg" for the child "bob"
Using a JSON snippet, the JSON would be:
{"children":[{"child_name":"alfred","child_servings_fruit":"3"},{"child_name":"bob","child_servings_veg":"2"}]}
The URL encoding for this JSON is:
%7B%22children%22%3A%5B%7B%22child_name%22%3A%22alfred%22%2C%22child_servings_fruit%22%3A%223%22%7D%2C%7B%22child_name%22%3A%22bob%22%2C%22child_servings_veg%22%3A%222%22%7D%5D%7D
In a URL this would be:
http://<site>/web-determinations/startsession/HealthyEating?seedData=%7B%22children%22%3A%5B%7B%22child_name%22%3A%22alfred%22%2C%22child_servings_fruit%22%3A%223%22%7D%2C%7B%22child_name%22%3A%22bob%22%2C%22child_servings_veg%22%3A%222%22%7D%5D%7D
Example 3: Seeding values for both global and entity level attributes
You can seed both global and entity level data simultaneously. For example, you could seed:
-
the value "Ravi Patel" for the global attribute "assessor_name" and the value "2025-07-04" for the global attribute "assessment_date"
-
the value "2" for the attribute "child_servings_fruit" for the child "aditya" and the value "4" for the attribute "child_servings_veg" for the child "lalita"
Using a JSON snippet, the JSON would be:
{"assessor_name":"Ravi Patel","assessment_date":"2025-07-04","children":[{"child_name":"aditya","child_servings_fruit":"2"},{"child_name":"lalita","child_servings_veg":"4"}]}
The URL encoding for this JSON is:
%7B%22assessor_name%22%3A%22Ravi%20Patel%22%2C%22assessment_date%22%3A%222025-07-04%22%2C%22children%22%3A%5B%7B%22child_name%22%3A%22aditya%22%2C%22child_servings_fruit%22%3A%222%22%7D%2C%7B%22child_name%22%3A%22lalita%22%2C%22child_servings_veg%22%3A%224%22%7D%5D%7D
In a URL this would be:
https://<site>/web-determinations/startsession/MyPolicy?seedData=%7B%22assessor_name%22%3A%22Ravi%20Patel%22%2C%22assessment_date%22%3A%222025-07-04%22%2C%22children%22%3A%5B%7B%22child_name%22%3A%22aditya%22%2C%22child_servings_fruit%22%3A%222%22%7D%2C%7B%22child_name%22%3A%22lalita%22%2C%22child_servings_veg%22%3A%224%22%7D%5D%7D