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

Unable to open serial port using Putty to bluetooth device on windows 7 64 bit -

bash - How do you programmatically add a bats test? -

java - Getting exception in JDBC thin driver -