concatinating json arrays #8121

Closed
opened 2025-12-29 20:32:42 +01:00 by adam · 0 comments
Owner

Originally created by @damo2929 on GitHub (May 25, 2023).

NetBox version

V3.51

Feature type

Change to existing functionality

Proposed functionality

would it be possible to combine values in a json array like it is possible to combine json object attributes.

example

have a config context with

{ 
  "sudo: [
       'group1' 
  ]
}

and a second one with

{ 
  "sudo: [
       'group2' 
  ]
}

desired outcome is

{ 
  "sudo: [
       'group1' ,  
       'group2'
   ]
}

Use case

this would allow for adding rules based on properties in which both the MSP and the Tenant could need sudo access for instance

Database changes

No response

External dependencies

No response

Originally created by @damo2929 on GitHub (May 25, 2023). ### NetBox version V3.51 ### Feature type Change to existing functionality ### Proposed functionality would it be possible to combine values in a json array like it is possible to combine json object attributes. example have a config context with ``` { "sudo: [ 'group1' ] } ``` and a second one with ``` { "sudo: [ 'group2' ] } ``` desired outcome is ``` { "sudo: [ 'group1' , 'group2' ] } ``` ### Use case this would allow for adding rules based on properties in which both the MSP and the Tenant could need sudo access for instance ### Database changes _No response_ ### External dependencies _No response_
adam closed this issue 2025-12-29 20:32:42 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8121