client rest call
preparing json response