moved json code into nuget package