From: Alan T. DeKok Date: Thu, 6 Mar 2025 20:15:23 +0000 (-0500) Subject: remove '&' from json X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a90387072c06d0d92201bc8076cb3f0b7eee078b;p=thirdparty%2Ffreeradius-server.git remove '&' from json but not from the function calls, because we need it for now --- diff --git a/raddb/mods-available/json b/raddb/mods-available/json index fcb7f24615..fff4173496 100644 --- a/raddb/mods-available/json +++ b/raddb/mods-available/json @@ -68,8 +68,8 @@ # [source, unlang] # ---- # map json "%rest(GET http://example.org/api/user/%{User-Name})" { -# &Foo := '$.account number' -# &Group += '$.groups.*' +# Foo := '$.account number' +# Group += '$.groups.*' # } # ---- # @@ -176,7 +176,7 @@ json { # ---- # string payload # payload := '$.my.json.payload[1]' -# &reply.Reply-Message := "Validation of %{payload} is %json.jpath_validate($.my.json.payload[1])" +# reply.Reply-Message := "Validation of %{payload} is %json.jpath_validate($.my.json.payload[1])" # ---- # # .Output @@ -196,8 +196,8 @@ json { # [source,unlang] # ---- # string path -# &path := "caipirinha/gelada" -# &reply.Reply-Message := "The string %{path} should be %json.quote(%{path}) to be a valid JSON string." +# path := "caipirinha/gelada" +# reply.Reply-Message := "The string %{path} should be %json.quote(%{path}) to be a valid JSON string." # ---- # # .Output