Converting Shell Output to json -


i want convert output of octave execution in shell json format.

for example if execute

$ octave --silent --eval 'a=[1,3],b=2' 

i

a =     1   3  b =  2 

i want output formatted json string in

"{'a':[1,3], 'b':2}" 

how achieve this, great if in node/js, anthing fine. looking existing solutions rather writing own logic parsing it. need suggestion.

i doubt if such package exists. easy write own rather thank waiting find one.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -