On Sun, Sep 10, 2017 at 10:53 PM, Бенджамин Томпсон <b.thompson@latera.ru> wrote:
2017-09-10 20:33 GMT+03:00 Avner Elizarov <avnerelizarov@gmail.com>:
But how can he handle several attributes with the same name in the json?
Not sure if I understood your issue
But, to answer that question:
To add multiple attributes of the same name in JSON:
{ "Reply-Message":{ op:"+=", value:{ "This value will be stored in the first Reply-Message attribute", "This value will be stored in another Reply-Message attribute" } } } Thank you very much for the examples. I need to separate the different attributes because I want to put other attributes in between. This forces them to be adjacent.
The reply list default list for the attributes in the JSON reply so I think the following might also work:
Add two Reply-Message attributes:
{ "Reply-Message": "This value will be stored in the first Reply-Message attribute", "reply:Reply-Message":{ op:"+=", value:{ "This is another Reply-Message attribute" } } } This is better since I can separate the attributes, however I need more than 2 attributes with the same name. List info/subscribe/unsubscribe? See http://www.freeradius.org/ list/users.html