consume JSON rest web services