Content negotiating resolver for returning json objects