https://github.com/varkrishna/jsonviewer
A JSONViewer for SwiftUI project
https://github.com/varkrishna/jsonviewer
ios json json-parser jsonviewer macos swift swift-package-manager swiftui
Last synced: about 1 year ago
JSON representation
A JSONViewer for SwiftUI project
- Host: GitHub
- URL: https://github.com/varkrishna/jsonviewer
- Owner: varkrishna
- License: apache-2.0
- Created: 2023-07-01T18:32:02.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-11T12:02:39.000Z (about 2 years ago)
- Last Synced: 2024-05-11T13:25:17.104Z (about 2 years ago)
- Topics: ios, json, json-parser, jsonviewer, macos, swift, swift-package-manager, swiftui
- Language: Swift
- Homepage:
- Size: 25.4 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JSONViewer
Use JSONViewer to view JSON as expandable and collapsable nodes in your SwiftUI Project
**Usage**
- To Convert JSON String to JSON Node
` var rootNode: JSONNode = "{"book":[{ "id":"111","language":"C", "edition":"First","author":"Dennis Ritchie" }]}".jsonNode`
- To Show JSON Node in JSONViewer
`JSONViewer(rootNode: rootNode)`
- Demo
https://github.com/varkrishna/JSONViewer/assets/13188037/c8d6a8d4-e05c-48e0-b169-f00193569d22
- Integrate Using Swift Package Manager
Search `https://github.com/varkrishna/JSONViewer`