I'm working with Watson Conversation, inside a dialog. I want to return all values of one entity in an array context variables.
The following works
{
"context": {
"toppings_array":["@toppings[0]","@toppings[1]"] works.
...
}
I'd like to find a generic solution, such as
{
"context": {
"toppings_array":["@toppings"]
...
}
The above sample sets the toppings_array value to the first element of the entity (e.g. @toppings[0]).
Thx.