format JSON string to easy to read for jq.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
CSNJQFormatter
CSNJQFormatterDemo.xcodeproj
CSNJQFormatterDemo
CSNJQFormatterDemoTests
.gitignore
CSNJQFormatter.podspec
LICENSE
README.md

README.md

CSNJQFormatter

CocoaPods

Overview

format JSON string to easy to read for jq.

Print out jq command equivalents for JSON, NSString and NSData (e.g. cat <<'END' | jq '.' \n{"foo":"bar"}\nEND) for debugging in the console.

Requirements

  • iOS 6 or Later
  • ARC

Usage

[CSNJQFormatter jqCommandFromJSON:@{@"foo": @"bar"}];
cat <<'END' | jq '.' 
{"foo":"bar"}
END

Install

Use CocoaPods,

pod 'CSNJQFormatter', '~> 0.0'

License

CSNJQFormatter is available under the MIT license. See the LICENSE file for more info.