I would like to set is an an integer. Forgive me as I am on mobile so this is from memory. I am getting a string using REDIS something like:
Redis_cmd("dB","GET key:xyz","r")
I now have some string in $redus(r=>value) say
{"this":"that","mum":"3","other":"here"}
I have used the jansson_get to move the value of the specific key into an AVP for use. If I move the value 3 that is keyed by "num" from the Jason into the AVP it is a string. I can use $avp(val) = $(avp(val){
s.int}) and that will work but was wondering if there was a more elegant solution to this?
Just finding my way around this new landscape :-)
Steve