sazameki / objc_json-parser

Sazameki JSON Parser written in Objective-C (Mac OS X / iPhone)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sazameki JSON Parser written in Objective-C (Mac OS X / iPhone)

This parser is compliant with the JSON (JavaScript Object Notation) specification introduced at http://www.json.org/, and it is able to parse JavaScript sources with embedded comments or trailing commas in arrays or hash tables.


<< How to use >>

1. Add SZJsonParser.* to your project.

2. Write your code.

    #import "SZJsonParser.h"

    NSString *str = @"[ 'Apple', 'Banana' ]";
    id obj = [str jsonObject];  // obj will be an array or a dictionary
    NSLog(@"JSON Object: %@", obj);


<< License >>

Sazameki JSON Parser written in Objective-C is provided under the terms of the MIT license.

Copyright © 2009 Satoshi Numata, Ph.D.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.



About

Sazameki JSON Parser written in Objective-C (Mac OS X / iPhone)


Languages

Language:Objective-C 99.2%Language:JavaScript 0.8%