add some code to work with json, but it isnt enabled because i decided it was a bad idea. also change some ArrayLists to generics