Added template code to header file.
Added JSON parsing and QObject creation to JSON test.