Json - JAVA (Eclipse)

Asked

Viewed 139 times

2

How do I read a JSON (jsonl) file through the eclipse in java? Need some package?

1 answer

2

There are several libraries for this purpose, but I recommend GSON

Example of JSON for JAVA:

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

Tutorial GSON - Link provided by the official repository readme

  • I don’t work with java, but with a little research you can know the answer to your question.

  • This responds to JSON Lines?

  • I was unaware of the site. But yes, I think there is no disagreement with the standard, but correct it if I’m wrong :)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.