+ */
+
+
+ Gson gson = new Gson();
+ String continent = "coutryTry.json";
+
+ //JsonReader reader = new JsonReader(new StringReader(rep));
+
+
+
+ JsonElement jsonelement;
+ try {
+ String reader;
+ reader = "{/home/sylvain/IdeaProjects/Persons_Comparator/data/coutryTry.json}";
+
+ JsonReader jsonreader;
+ jsonreader = new JsonReader(new StringReader(reader));
+ jsonelement = parse(jsonreader);
+ jsonreader.setLenient(true);
+ if (!jsonelement.isJsonNull() && jsonreader.peek() != JsonToken.END_DOCUMENT) {
+ throw new JsonSyntaxException("Did not consume the entire document.");
+ }
+ Region region = gson.fromJson(reader,Region.class);
+ List<Country> country = region.getCountry();
+ System.out.println(country);
+ } catch (MalformedJsonException malformedjsonexception) {
+ throw new JsonSyntaxException(malformedjsonexception);
+ } catch (IOException ioexception) {
+ throw new JsonIOException(ioexception);
+ } catch (NumberFormatException numberformatexception) {
+ throw new JsonSyntaxException(numberformatexception);
+ }
+
+
+ //File path = new File(rep+continent);
+