moved json code to its own package