JsonFromServer updated to include unit tests and mock tests