parsing RAW output

Hi,

how would it be possible to parse the RAW output and save it into variables?
Currently i only can get one result string as output.

So plan is:
->parse that string into different variables instead of one and output it as JSON (like parse_genie is doing it).

Background i want to automate some firewalls but it is not possible since they do not support python nor they have an API.
Just a regular SSH with predefined commands is possible.

Thank you