rlm_rest: Parse response from API?

Alan DeKok aland at deployingradius.com
Mon Dec 20 16:48:49 CET 2021


On Dec 18, 2021, at 10:27 AM, Michael Schwartzkopff <ms at sys4.de> wrote:
> my API returns something like:
> 
> {"count":1,"next":null,"previous":null,"results":[{"id":16, ... How can
> I access key/value pairs in the "results" data structure and assign the
> value of a specific pair to an attribute?

  It's hard to do in 3.0. :(  v4 is more able to decode this.

  Matthew updated rlm_json in the v3.2.x branch.  It can encode more json attributes, but can't decode any.  We'd be OK with getting a patch to update 3.2.  But if we change 3.0 at this time, then Matthew will be upset at me. :(

  Alan DeKok.




More information about the Freeradius-Users mailing list