retrieving build status in JSON