Loggin in json works