Over here, I was accessing the “value” key of the passed down JSON object using a string variable named “value”. Then using WriteLine, I printed the string variable “value”.
As you can observe, the string variable’s name and the keyword’s name is the same. (which is “value”)
Creating string variables and naming them with names matching the names of the keys of the JSON object is allowing me to get the values of the JSON object’s keys.
But I want to get the JSON object’s keys and their respective values without using any keywords of the JSON object.
I’m not sure if I understand it completely.
But by default “invoke openflow” has no variable mappings, that means it will send ALL variables to openflow, and it will map ALL propeperties of msg.payload back to an vaiable in opeflow.
Often that is not what you want, then you can use “map variables” to “scope” what variables you want to send and receive.