JSONTableView

Display your SwiftyJSON data on an expandable list view. The view itself is not a UITableView subclass, everything is created with UIStackViews, so it's not memory friendly for big json files. I created it for debugging my json data in a quick and dirty way. Contributions are welcomed for making it better!

JSONTableView

Install

pod 'JSONTableView'
Ruby

Usage

  • Create an instance of JSONTableView either programmaticaly or in your storyboard.
@IBOutlet weak var tableView: JSONTableView?
Swift
  • Pass a SwiftyJSON's JSON type data object to your JSONTableView instance's data property and call reloadData()
let data = JSON(...)
tableView?.data = data
tableView?.reloadData()
Swift
  • You may expand/collapse all possible expandable cells with
tableView?.expandAll()
tableView?.collapseAll()
Swift

GitHub

Expandable JSON data viewerRead More

Latest commit to the master branch on 6-26-2020
Download as zip