Add JSON suport.

You can also test accuracy of a classifier on a CSV or JSON file.