I need save into variable the file content (json string).
I try several methods, in particular:
#!/bin/bash
myjson=cat path-to-file/file.json
but nothing not work.
How to correctly implement this task?
I need save into variable the file content (json string).
I try several methods, in particular:
#!/bin/bash
myjson=cat path-to-file/file.json
but nothing not work.
How to correctly implement this task?