<commit_before>Realm+JSON ![License MIT](https://go-shields.herokuapp.com/license-MIT-blue.png)
==========

[![Badge w/ Version](https://cocoapod-badges.herokuapp.com/v/Realm+JSON/badge.png)](https://github.com/matthewcheok/Realm-JSON)
[![Badge w/ Platform](https://cocoapod-badges.herokuapp.com/p/Realm+JSON/badge.svg)](https://github.com/matthewcheok/Realm-JSON)

A concise Mantle-like way of working with [Realm](https://github.com/realm/realm-cocoa) and JSON.

## Installation

Add the following to your [CocoaPods](http://cocoapods.org/) Podfile

    pod 'Realm+JSON', '~> 0.1'

or clone as a git submodule,

or just copy files in the ```Realm+JSON``` folder into your project.

## Using Realm+JSON

Simply declare your model as normal:

    typedef NS_ENUM(NSInteger, MCEpisodeType) {
        MCEpisodeTypeFree = 0,
        MCEpisodeTypePaid
    };

    @interface MCEpisode : RLMObject

    @property NSInteger episodeID;
    @property NSInteger episodeNumber;
    @property MCEpisodeType episodeType;<commit_msg>Updated README again<commit_after>Realm+JSON ![License MIT](https://go-shields.herokuapp.com/license-MIT-blue.png)
==========

[![Badge w/ Version](https://cocoapod-badges.herokuapp.com/v/Realm+JSON/badge.png)](https://github.com/matthewcheok/Realm-JSON)
[![Badge w/ Platform](https://cocoapod-badges.herokuapp.com/p/Realm+JSON/badge.svg)](https://github.com/matthewcheok/Realm-JSON)

A concise [Mantle](https://github.com/Mantle/Mantle)-like way of working with [Realm](https://github.com/realm/realm-cocoa) and JSON.

## Installation

Add the following to your [CocoaPods](http://cocoapods.org/) Podfile

    pod 'Realm+JSON', '~> 0.1'

or clone as a git submodule,

or just copy files in the ```Realm+JSON``` folder into your project.

## Using Realm+JSON

Simply declare your model as normal:

    typedef NS_ENUM(NSInteger, MCEpisodeType) {
        MCEpisodeTypeFree = 0,
        MCEpisodeTypePaid
    };

    @interface MCEpisode : RLMObject

    @property NSInteger episodeID;
    @property NSInteger episodeNumber;
    @property MCEpisodeType episodeType;
{'fraction_non_alphanumeric': 0.1459433509361498, 'fraction_numerical': 0.0028804608737397984, 'mean_word_length': 4.343589743589743, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 13, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '581795', 'n_tokens_mistral': 755, 'n_tokens_neox': 736, 'n_words': 147}