Sample minor change, before merge
Provided JSON generic superclass, Closes #346
Changes to sample, implemented JSON sample