first implementation getting a json result based on IP