Added option to use inline JSON data

Added an option to use inline JSON data instead of having to read from an external file. Could probably use a bit more validation around parsing the JSON.