Skip to content

Latest commit

 

History

History
26 lines (11 loc) · 568 Bytes

README.md

File metadata and controls

26 lines (11 loc) · 568 Bytes

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