Skip to content

Commit 41f99de

Browse files
Update ReadingJsonFromInternet.java
1 parent f023a55 commit 41f99de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/ReadingJsonFromInternet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public static void main(String[] args) throws IOException
2222
JsonSerializer reader = new JsonSerializer();
2323

2424
InputStream urlInput = new URL("https://jsonplaceholder.typicode.com/users").openStream(); //Establishing connection with https://jsonplaceholder.typicode.com/users and getting stream of received data!
25-
reader.LoadFrom(urlInput); //Parsing url into json!
25+
reader.LoadFrom(urlInput); //Parsing url stream content into json!
2626

2727
String user = "Glenna Reichert"; //User we want to get (Glenna Reichert)!
2828
String glennasCompany = reader.getScopesWith("name", user).get(0).getScope("company").getString("name"); //Obtaining first scope that contains variable with users name and getting name of his company as string from it!

0 commit comments

Comments
 (0)