moved json stuff to separate project