mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
global-functions: $ParseJson: use temporary variables
This commit is contained in:
parent
fed7f2da46
commit
140ec1a3a2
1 changed files with 5 additions and 3 deletions
|
@ -715,11 +715,13 @@
|
||||||
}
|
}
|
||||||
} else={
|
} else={
|
||||||
:local Key ($Input->$I);
|
:local Key ($Input->$I);
|
||||||
:if ($Input->($I + 1) = ":") do={
|
:local Val1 ($Input->($I + 1));
|
||||||
:set ($Return->$Key) ($Input->($I + 2));
|
:local Val2 ($Input->($I + 2));
|
||||||
|
:if ($Val1 = ":") do={
|
||||||
|
:set ($Return->$Key) $Val2;
|
||||||
:set Skip 2;
|
:set Skip 2;
|
||||||
} else={
|
} else={
|
||||||
:set ($Return->$Key) [ :pick ($Input->($I + 1)) 1 [ :len ($Input->($I + 1)) ] ];
|
:set ($Return->$Key) [ :pick $Val1 1 [ :len $Val1 ] ];
|
||||||
:set Skip 1;
|
:set Skip 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue