I'm not a terrible slouch at mikrotik scripting but this is eating up too much time
I'm pulling this object from a web request:
[;"id":"d66feee0-601e-4b45-8135-2fece1df4a41","identification":{"id":"d66feee0-601e-4b45-8135-2fece1df4a41","status":"active","name":"Customer Name","p
arent":null,"type":"endpoint","suspended":false,"updated":"2022-12-06T05:56:03.035Z"},"description":{"address":"30 Rockafeller Center","note":null,"contact":{"name":null,"phone":null,"email":null},"location":null,"height":null,"elevation":null,"endpoints":[],"deviceCount":6,"d
eviceOutageCount":0,"deviceListStatus":"active","ucrmId":"537","regulatoryDomain":"US","ipAddresses":["100.70.5.93","100.70.9.200","100.70.31.179","100.
70.32.190"],"sla":1},"lastSpeedReport":null,"notifications":{"type":"none","users":[]},"qos":{"aggregation":null,"downloadBurstSize":null,"downloadSpeed
":50000000,"enabled":true,"propagation":null,"uploadBurstSize":null,"uploadSpeed":20000000},"ucrm":{"client":{"id":"254","name":"customer name","isLead
":false},"service":{"id":"537","name":"50M-R","status":1,"activeFrom":"2021-11-28T00:00:00.000Z","tariffId":"24","trafficShapingOverrideEnabled":false}}
]
I need to get this output into variables like so
name=customer name
service_id=537
customer_id=254
service_name=50M-R
status=1
and array of ipaddress=100.70.5.93, 100.70.9.200, 100.70.31.179, 100.70.32.190
downloads-speed = 50000000
upload-speed = 20000000
and really all the variables mapped out, except IP that needs to be in an array so I can interate through it.
this is for a DHCP script and all in the 'local' context.
I'm happy to buy a beer for someone to hack this together for me.
Thanks.