问题
I have a sinatra server, I need the client in java that receive data using json from sinatra. I have no idea how to do it.
回答1:
Use Jersey client to get JSON data from server. Use Gson to convert it from JSON to your objects.
来源:https://stackoverflow.com/questions/5233175/json-java-client-to-connect-server-and-receive-data