Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
aristosh committed Oct 27, 2021
1 parent 122b6d6 commit bdb5e3d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -99,16 +99,16 @@ final myBoolean = myJsonArray.boolean(3, true);
Usage:
```dart
// on JSON object, if 'myKey' not found it returns empty object
final myObject = myJsonObject.integer('myKey');
final myObject = myJsonObject.object('myKey');
// on JSON object, if 'myKey' not found it returns JSON object {'a' : 10}
final myObject = myJsonObject.integer('myKey', {'a' : 10});
final myObject = myJsonObject.object('myKey', {'a' : 10});
// on JSON Array, retrieve JSON object at index 0
final myObject = myJsonArray.integer(0);
final myObject = myJsonArray.object(0);
// on JSON Array, retrieve JSON object at index 3, returns {'b' : 'hello world'} as default value
final myObject = myJsonArray.integer(3, {'b' : 'hello world'});
final myObject = myJsonArray.object(3, {'b' : 'hello world'});
```


Expand Down

0 comments on commit bdb5e3d

Please sign in to comment.