Currently currentMagazineDetail returns a string such as
"6.5mm 30Rnd STANAG Mag(30/30)[id:0]"
An array [string magazine type, int current ammo, int maxAmmo, id] would be more useful in most if not all use cases for this function.
The same could be done for https://community.bistudio.com/wiki/magazinesDetail to return an array of arrays.