Implementing restful service. json still not working