skip to Main Content

How to find the required id in json

I have json [ { "id": 1116, "en_name": "Location, Surroundings", "children": [ { "id": 819, "en_name": "Location Satisfaction", "children": [] }, { "id": 1004, "en_name": "Car Parking Facilities", "children": [ { "id": 1297, "en_name": "Availability and general perception of parking",…

VIEW QUESTION

RestTemplate cannot deserialize a JSON array

When I try to get a list of values using RestTemplate, I get an error. I use Spring 3.0.0. Caused by: org.springframework.web.client.RestClientException: Error while extracting response for type [class [Lru.sandwichcloud.Ingredient;] and content type [application/json] at org.springframework.web.client.HttpMessageConverterExtractor.extractData(HttpMessageConverterExtractor.java:118) ~[spring-web-6.0.2.jar!/:6.0.2] at org.springframework.web.client.RestTemplate$ResponseEntityResponseExtractor.extractData(RestTemplate.java:1132) ~[spring-web-6.0.2.jar!/:6.0.2]…

VIEW QUESTION

Parse unstructured json in golang

Is there any solution to parse an unstructured json(text) data? below is a sample response of a web requst that i want to parse and access data (the inner list) res,err := http.Get("url_of_server") [[ { "id": "1", "text": "sample text",…

VIEW QUESTION
Back To Top
Search