Note, that this recipe is not updated long time and could be outdated!
Got it.

Extra 5. JSON

  1. Review presentation JSON
  2. Look for more information about popular JSON implementation in Java
  3. Look at some examples how to use this library
  4. Add following dependency in <dependencies> element of pom.xml file:

    <!-- JSON -->
    <dependency>
    <groupId>org.json</groupId>
    <artifactId>json</artifactId>
    <version>20180813</version>
    </dependency>
  5. Regenerate project files for eclipse with command in your project:

    mvn eclipse:eclipse

    and refresh project in Eclipse

  6. Investigate jtm.extra05 package
  7. Implement classes Car and JsonCars  to pass unit tests.

  

Created by Valdis Vītoliņš on 2020-05-26 09:52
Last modified by Valdis Vītoliņš on 2021-04-13 14:31
 
Xwiki Powered
Creative Commons Attribution 3.0 Unported License