Javascript (ES6), 121 110110 106 bytes
-11 Bytes15 bytes thanks to @Shaggy and @Justin
m=>`[[${(a=m.split`
`.map(x=>x.trim().replacematch(/ +\S+/g,").join`, ")`)).join`], [`}]]
{{${a.join`}, {`}}}
[${a.join`; `}]`"]`
Example code snippet:
f=
m=>`[[${(a=m.split`
`.map(x=>x.trim().replacematch(/ +\S+/g,").join`, ")`)).join`], [`}]]
{{${a.join`}, {`}}}
[${a.join`; `}]`
console.log(f(
`1 -2
3 5
6 7`
))