rlm_rest JSON format for multiple attributes

Arran Cudbard-Bell a.cudbardb at freeradius.org
Mon Mar 24 22:15:57 CET 2014

On 24 Mar 2014, at 18:44, Werner Stucky <wernerml at 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':''}
> 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':['','']}

git pull

Arran Cudbard-Bell <a.cudbardb at freeradius.org>
FreeRADIUS Development Team

FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 881 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freeradius.org/mailman/private/freeradius-users/attachments/20140324/18ba6e0e/attachment-0001.pgp>

More information about the Freeradius-Users mailing list