Skip to content

Commit

Permalink
Merge branch 'main' of git@github.com:burningwave/JSON.git into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Roberto-Gentili committed Oct 24, 2023
2 parents 224a2cb + 9899270 commit 0df9b92
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ After loaded the JSON we need to instantiate a **Finder**. There are 3 kinds of
* the [**ObjectHandler.ValueFinder**](#The-ObjectHandlerValueFinder) that which allows you to search for elements within the JSON ​​directly returning the values
* the [**ObjectHandler.ValueFinderAndConverter**](#The-ObjectHandlerValueFinderAndConverter) that which allows you to search for elements within the JSON ​​and convert the values found

<br/>

## The ObjectHandler.Finder
To obtain this kind of finder use this code:
```java
Expand All @@ -117,6 +119,8 @@ String questionOnePath = questionOneOH.getPath();
Question questionOne = questionOneOH.getValue();
```

<br/>

## The ObjectHandler.ValueFinder
To obtain this kind of finder use this code:
```java
Expand All @@ -132,6 +136,8 @@ String option2OfSportQuestion = finder.findFirstForPathEndsWith(Path.of("sport",
Question questionOne = finder.findForPathEquals(Path.of("quiz", "sport", "q1"));
```

<br/>

### The ObjectHandler.ValueFinderAndConverter
To obtain this kind of finder use this code:
```java
Expand Down

0 comments on commit 0df9b92

Please sign in to comment.