getting score as a json object