CSNJQFormatter

format JSON string to easy to read for jq.


License
MIT
Install
pod try CSNJQFormatter

Documentation

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.