Quantcast
Channel: MikroTik
Viewing all articles
Browse latest Browse all 15394

Scripting • Re: Test if array is associative, multi-dimensional, or simple list

$
0
0
For use in this script (its not 100% yet) https://gist.github.com/mike548141/ba12 ... cc2887f6d6

FWIW, while no "pretty print"... v7.13 has JSON support as built-in function
Code:
:put [:serialize {a=123} to=json]{"a":123}:put [:deserialize "{ \"a\": 123 }" from=json ]                 a=123

Statistics: Posted by Amm0 — Tue Feb 13, 2024 6:00 am



Viewing all articles
Browse latest Browse all 15394

Trending Articles