Added license
Refactored the JsonClient