added json for templated classes