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
Post a Comment