Skip to content
Expandable JSON data viewer
Swift Ruby
Branch: master
Clone or download
cemolcay Initial release
Add podspec
Add readme
Add demo
Add example project
Latest commit f99028f Sep 19, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
JSONTableView.xcodeproj Initial release Sep 19, 2019
JSONTableView.xcworkspace Initial release Sep 19, 2019
JSONTableView Initial release Sep 19, 2019
.gitignore Initial release Sep 19, 2019
JSONTableView.podspec Initial release Sep 19, 2019
LICENSE Initial release Sep 19, 2019
Podfile Initial release Sep 19, 2019
Podfile.lock Initial release Sep 19, 2019
README.md Initial release Sep 19, 2019
demo.gif Initial release Sep 19, 2019

README.md

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!

Demo

alt tag

Install

pod 'JSONTableView'

Usage

  • Create an instance of JSONTableView either programmaticaly or in your storyboard.
@IBOutlet weak var tableView: JSONTableView?
  • 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()
  • You may expand/collapse all possible expandable cells with
tableView?.expandAll()
tableView?.collapseAll()
You can’t perform that action at this time.