added .gitignore. Moved json instance closer to datatype