<commit_before><img style="float: right;" src="https://github.com/sushihangover/Realm.Json.Extensions/raw/master/media/SushiHangover.RealmJson.png">

##SushiHangover.RealmJson.Extensions

**Extension Methods for adding JSON APIs to a Realm Instance**

##Current project status:

[![Build status](https://ci.appveyor.com/api/projects/status/ronof3ruyjpl1c4v/branch/master?svg=true)](https://ci.appveyor.com/project/sushihangover/realm-json-extensions/branch/master)


##Nuget:

<div class="nuget-badge">
<p>
<code>
PM> Install-Package RealmJson.Extensions
</code>
</p>
</div>

Ref: [https://www.nuget.org/packages/RealmJson.Extensions](https://www.nuget.org/packages/RealmJson.Extensions)

##Issues?

###Post issues on [GitHub](https://github.com/sushihangover/Realm.Json.Extensions/issues)

##Need Help?

Post on [StackOverflow](http://stackoverflow.com/questions/tagged/xamarin+realm) with the tags: **`[XAMARIN]`** **`[REALM]`** **`[JSON]`**

##API Reference:

TODO, place doc link here

##Extension API:

* A Realm Instance:
	* .CreateAllFromJson\<T\>(string)
	* .CreateAllFromJson\<T\>(Stream)
 	* .CreateAllFromJsonViaAutoMapper\<T\>(Stream)
	* .CreateObjectFromJson\<T\>(string)
	* .CreateObjectFromJson\<T\>(Stream)
	* .CreateOrUpdateObjectFromJson\<T\>(string)
 	* .CreateOrUpdateObjectFromJson\<T\>(Stream)


##Usage / Examples:
	
###Single RealmObject from Json-based Strings:
	
	using (var theRealm = Realm.GetInstance(RealmDBTempPath()))
	{
		var realmObject = theRealm.CreateObjectFromJson<StateUnique>(jsonString);
	}

###Single RealmObject from a Stream:

	using (var stream = new MemoryStream(byteArray))<commit_msg>Fix link to API docs<commit_after><img style="float: right;" src="https://github.com/sushihangover/Realm.Json.Extensions/raw/master/media/SushiHangover.RealmJson.png">

##SushiHangover.RealmJson.Extensions

**Extension Methods for adding JSON APIs to a Realm Instance**

##Current project status:

[![Build status](https://ci.appveyor.com/api/projects/status/ronof3ruyjpl1c4v/branch/master?svg=true)](https://ci.appveyor.com/project/sushihangover/realm-json-extensions/branch/master)


##Nuget:

<div class="nuget-badge">
<p>
<code>
PM> Install-Package RealmJson.Extensions
</code>
</p>
</div>

Ref: [https://www.nuget.org/packages/RealmJson.Extensions](https://www.nuget.org/packages/RealmJson.Extensions)

##Issues?

###Post issues on [GitHub](https://github.com/sushihangover/Realm.Json.Extensions/issues)

##Need Help?

Post on [StackOverflow](http://stackoverflow.com/questions/tagged/xamarin+realm) with the tags: **`[XAMARIN]`** **`[REALM]`** **`[JSON]`**

##API Reference:

[https://sushihangover.github.io/Realm.Json.Extensions/](https://sushihangover.github.io/Realm.Json.Extensions/)


##Extension API:

* A Realm Instance:
	* .CreateAllFromJson\<T\>(string)
	* .CreateAllFromJson\<T\>(Stream)
 	* .CreateAllFromJsonViaAutoMapper\<T\>(Stream)
	* .CreateObjectFromJson\<T\>(string)
	* .CreateObjectFromJson\<T\>(Stream)
	* .CreateOrUpdateObjectFromJson\<T\>(string)
 	* .CreateOrUpdateObjectFromJson\<T\>(Stream)


##Usage / Examples:
	
###Single RealmObject from Json-based Strings:
	
	using (var theRealm = Realm.GetInstance(RealmDBTempPath()))
	{
		var realmObject = theRealm.CreateObjectFromJson<StateUnique>(jsonString);
	}

###Single RealmObject from a Stream:

	using (var stream = new MemoryStream(byteArray))
{'fraction_non_alphanumeric': 0.17118189937481393, 'fraction_numerical': 0.0017862459065197975, 'mean_word_length': 5.774193548387097, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 35, 'https://': 14, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7403060', 'n_tokens_mistral': 1244, 'n_tokens_neox': 1192, 'n_words': 183}