a simple rest client / class that return jsons