Skip to content

Commit

Permalink
📚 docs: update README.md #4
Browse files Browse the repository at this point in the history
  • Loading branch information
pnguyen215 committed Jan 13, 2025
1 parent df47ce2 commit 7703df9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -491,5 +491,9 @@ func main() {
fmt.Println(value) // 12345
value = fj.Get(json, "user.roles.#.roleName")
fmt.Println(value) // ["Admin","Editor"]
value = fj.Get(json, "user.roles.#.permissions.#.permissionName")
fmt.Println(value) // [["View Reports","Manage Users"],["Edit Content","View Analytics"]]
value = fj.Get(json, "user.address")
fmt.Println(value) // {"street":"123 Main St","city":"Anytown","state":"CA","postalCode":"12345","country":"USA"}
}
```

0 comments on commit 7703df9

Please sign in to comment.