User Tools

Site Tools


Problem constructing authldap
laboratoare:tutorial-json-jackson
Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
laboratoare:tutorial-json-jackson [2018/11/25 23:44]
Ion Bîrsu created
laboratoare:tutorial-json-jackson [2018/12/20 13:38] (current)
Bogdan Firuti [Folosirea API-ului]
Line 92: Line 92:
 <code java> <code java>
     ObjectMapper objectMapper = new ObjectMapper();​     ObjectMapper objectMapper = new ObjectMapper();​
-    Car car = objectMapper.readValue(new File("​target/​car.json",​ Car.class);+    Car car = objectMapper.readValue(new File("​target/​car.json"​), Car.class);
    </​code> ​    </​code> ​
 **Exemplu de mapare a unei liste:** **Exemplu de mapare a unei liste:**
Line 119: Line 119:
         private String type;         private String type;
    
-        // standard ​getters setters+        // settere si gettere ​standard
         public Color getColor() {         public Color getColor() {
             return color;             return color;
laboratoare/tutorial-json-jackson.1543182291.txt.gz · Last modified: 2018/11/25 23:44 by Ion Bîrsu