I have a Spring controller in which I have to read a JSON object from a URLConnection. Currently I am doing this by reading from the connection's input stream line by line. Basically I am reading the text contents of the response line by line.
Is there any JSON api that I could use to populate the JSON object directly from the URLConnection? Anything that integrates with Spring?