updated signature api to the correct url + parsing json