On 24 Mar 2014, at 18:44, Werner Stucky <wernerml@stucky-solutions.net> wrote:
Hi Guys
I've ran into a problem with rlm_rest and specifying VPs with JSON. I need to return multiple Framed-Route attributes.
So now I have :
{'Framed-Route':'1.2.3.4/32'}
I can't add any additional Framed-Route attributes because the JSON format is a set of key value pairs and the key is unique.
From RFC4627: --------------- An object structure is represented as a pair of curly brackets surrounding zero or more name/value pairs (or members). A name is a string. A single colon comes after each name, separating the name from the value. A single comma separates a value from a following name. The names within an object SHOULD be unique. ---------------
Is there a way to support an array of values?
eg.
{'Framed-Route':['1.2.3.4/32','5.6.7.8/32']}
git pull Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS Development Team FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2