Move json generic deserialize helper to test project.