Json - JAVA (Eclipse)

2

How do I read a JSON (jsonl) file through eclipse in java? Do I need a package?

    
asked by anonymous 28.03.2018 / 17:41

1 answer

2

There are several libraries for this, but I recommend GSON

JSON Example for JAVA:

Gson json = new Gson();
String string_json= "{\"ID\":\"9\",\"pais\":\"Korea\"}";
Info info= json.fromJson(string_json, Info.class);

GSON Tutorial - Link provided by the official repository readme

    
28.03.2018 / 17:51