I think you may have the wrong approach. Why not point to a .json file for your program to accept it on the command line?
In this way
$> python mcraw recipe add --recipies=my_recipies.json
And you can pull it and use as you like, features include, for example, what Martijn answers
source share