rest modules JSON replies format and types

Arran Cudbard-Bell a.cudbardb at freeradius.org
Thu Feb 4 21:03:56 CET 2016


> On 4 Feb 2016, at 07:26, Louis Munro <lmunro at inverse.ca> wrote:
> 
> 
>> On Feb 3, 2016, at 16:45 , Arran Cudbard-Bell <a.cudbardb at freeradius.org> wrote:
>> 
>> Try with with compact version:
>> 
>> {
>> 	"Tunnel-Private-Group-ID": 2
>> }
>> 
>> and then if that doesn't work:
>> 
>> {
>> 	"Tunnel-Private-Group-ID": "2"
>> }
>> 
>> 
> 
> The first works for me.
> The (perl) module I use to serialize to JSON automatically quotes strings and leaves integers as is.
> So
> 
> {
>  "Airespace-ACL-Name": "registration",
>  "Tunnel-Medium-Type": 6,
>  "Tunnel-Type": 13,
>  "Tunnel-Private-Group-ID": 2
> }

Ok, thanks.  Could you open an issue ticket, and i'll figure out whatever the problem is with the expanded reply.

-Arran

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: 872 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20160204/39893301/attachment.sig>


More information about the Freeradius-Users mailing list