For a different take (not live) at programming music check scamp for python[0]. The author also has a bunch of videos in youtube with things he does with it, like this Fourier Elise video[1].
I'm sure they have first class support for json, and if they don't you can easily use a C library. The code snippet in their home page years ago was how to read a json file for configuration... at compile time!