Skip to content

Commit 63962b0

Browse files
authored
Update JavaJsonpJsonParserSimpleEx.java
1 parent b8b0654 commit 63962b0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

json/jsonp/JavaJsonpJsonParserSimpleEx.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ public static void main(String[] args) throws FileNotFoundException {
2727
// starting object
2828
if (event == JsonParser.Event.START_OBJECT) {
2929

30+
// looping over object attributes
3031
while (parser.hasNext()) {
3132

3233
event = parser.next();
@@ -46,7 +47,6 @@ public static void main(String[] args) throws FileNotFoundException {
4647
case "occupation":
4748
parser.next();
4849

49-
5050
System.out.printf("Occupation: %s%n", parser.getString());
5151
break;
5252

0 commit comments

Comments
 (0)