Skip to content

Commit

Permalink
better example of parsing multiple values in json
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Sep 12, 2017
1 parent 7a0bbff commit d9c868f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions raddb/mods-available/rest
Expand Up @@ -115,7 +115,10 @@ rest {
# - is_json If true, any nested JSON data will be copied to the attribute
# in string form. Defaults to true.
# - op Controls how the attribute is inserted into the target list.
# Defaults to ':='.
# Defaults to ':='. To create multiple attributes from multiple
# values, this should be set to '+=', otherwise only the last
# value will be used, and it will be assigned to a single
# attribute.
# {
# "<attribute0>":{
# "is_json":<bool>,
Expand All @@ -124,7 +127,10 @@ rest {
# "value":[<value0>,<value1>,<valueN>]
# },
# "<attribute1>":"value",
# "<attributeN>":[<value0>,<value1>,<valueN>]
# "<attributeN>":{
# "value":[<value0>,<value1>,<valueN>],
# "op":"+="
# }
# }

#
Expand Down

0 comments on commit d9c868f

Please sign in to comment.