Skip to content

Commit

Permalink
Added podspec file
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrii Mamchur committed Nov 13, 2013
1 parent a129738 commit 84ce0ad
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
12 changes: 12 additions & 0 deletions JsonLite.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Pod::Spec.new do |s|
s.name = "JsonLite"
s.version = "1.1.0"
s.summary = "High performance and low memory footprint JSON parser for mobile/embedded systems"
s.homepage = "https://github.com/amamchur/jsonlite"
s.license = "Apache License, Version 2.0"
s.author = { "Andrii Mamchur" => "andrii.mamchur@gmail.com" }
s.source = { :git => "https://github.com/amamchur/jsonlite.git", :tag => "v1.1.0" }
s.source_files = 'amalgamated/jsonlite/*.{h,c}', 'objc/*.{h,m}'
s.public_header_files = "amalgamated/*.h", "objc/*.h"
s.framework = 'Foundation'
end
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
* [Decimal Number](#decimal-number)
* [Roadmap](#roadmap)
* [Code Coverage](#code-caverage)
* [Licence](#licence)
* [License](#license)

#### What is jsonlite and JsonLite ObjC

jsonlite is JSON [tokenizer](http://en.wikipedia.org/wiki/Tokenization). It's lightweight C libary that can be used for low-level JSON processing or parser development.
jsonlite is JSON [tokenizer](http://en.wikipedia.org/wiki/Tokenization). It's lightweight C library that can be used for low-level JSON processing or parser development.

JsonLite ObjC is JSON parser base on jsonlite. It's the [fastest](https://github.com/amamchur/iJSONBenchmark) and flexible JSON parser for Objective-C.

Expand Down Expand Up @@ -104,7 +104,7 @@ Current example shows how to quick tokenize and accumulate results to Cocoa coll
**What's New?**
* ***dataUsingEncoding*** - buildin Cocoa method. It converts NSString to NSData object.
* ***JsonLiteAccumulator*** - convert JSON tokens to Cocoa classes and accumulate results to NSArray or NSDictionary.
* ***objectFromData*** - class method of JsonLiteAccumulator, it is helper method - incupsulation of full initialization (see next example).
* ***objectFromData*** - class method of JsonLiteAccumulator, it is helper method - encapsulation of full initialization (see next example).

``` objc
#import <Foundation/Foundation.h>
Expand All @@ -128,7 +128,7 @@ Also this example shows full parsing flow: create parser -> assign delegate -> p
**What's New?**
* ***JsonLiteParser*** - sequential access JSON parser.
* ***JsonLiteAccumulator*** - implements JsonLiteParserDelegate protocol. Performs token convertion and accululates results to Cocoa collections.
* ***JsonLiteAccumulator*** - implements JsonLiteParserDelegate protocol. Performs token conversion and accumulates results to Cocoa collections.
``` objc
#import <Foundation/Foundation.h>
Expand Down Expand Up @@ -164,7 +164,7 @@ It's really hard to deal with Cocoa collections. The best way is to bind JSON to

**What's New?**
* ***Model*** - declaration of application object.
* ***JsonLiteDeserializer*** - implements JsonLiteParserDelegate protocol. Performs token convertion and binds resuls to specified model.
* ***JsonLiteDeserializer*** - implements JsonLiteParserDelegate protocol. Performs token conversion and binds results to specified model.
* ***JsonLiteSerializer*** - serialize Objective-C model or collection to JSON.

``` objc
Expand Down Expand Up @@ -219,7 +219,7 @@ int main(int argc, const char * argv[]) {
```
###### Decimal Number
Only JsonLite ObjC can work with NSDecimalNumber object and you can forgot about workaround with strings. It's very important feature for finance project.
Only JsonLite ObjC can work with NSDecimalNumber object and you can forget about workaround with strings. It's very important feature for finance project.
**What's New?**
* ***NSDecimalNumber*** - class for base-10 arithmetic.
Expand Down Expand Up @@ -273,7 +273,7 @@ Full function, statement and branch coverage.

![Image](../master/tests/cov.png?raw=true)

#### Licence
#### License

jsonlite and JsonLite ObjC are licensed under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0)

Expand Down

0 comments on commit 84ce0ad

Please sign in to comment.