Latest 3.0.3
License MIT
Platforms ios 9.0, requires ARC
Dependencies YapDatabase, SwiftyJSON, JWTDecode, Alamofire
Authors , ,


An utility library for iOS which implements typed queries over Swift dictionaries – includes wrapper classes for JSON API resource objects (single objects and collections)

This library exposes two core objects:

  • JSON
  • APIResource

The JSON class exposes "search" methods similar to NSDictionary‘s valueForKeyPath(_:), but converts results into objects with a known type:

  • String?
  • Int?
  • Float?
  • Double?
  • Bool?
  • Bool (evaluated against Int values)
  • Bool (compared to String values)
  • [String: AnyObject]?
  • [String]?
  • [Int]?
  • [Float]?
  • [Bool]?
  • [AnyObject]?
  • [``[String: AnyObject]``]?

The APIResource class inherits from APIObjectBase class and represents a JSON API resource object.
Instances of such class can be created with a JSON instance or an instance of NSData.

The dictionary used to instantiate APIResource must be a [String: AnyObject] dictionary whose
structure conforms to the JSON API standard.

The APIResourceCollection class adds support for collections of JSON API resources.
Both APIResource and APIResourceCollection include a [String: [APIResource]]
dictionary of resources included into the source JSON API document

Latest podspec

    "name": "NMNet",
    "version": "3.0.3",
    "summary": "An utility library which simplifies interaction with public APIs of",
    "description": "An utility library for iOS which simplifies interaction with public APIs of - implements the ability to send requests to generic (custom) endpoints",
    "homepage": "",
    "license": "MIT",
    "authors": {
        "Francesco Colleoni": "[email protected]",
        "Vincenzo Ferrara": "[email protected]",
        "Alex Corlatti": "[email protected]"
    "source": {
        "git": "",
        "tag": "3.0.3"
    "source_files": [
    "platforms": {
        "ios": "9.0"
    "requires_arc": true,
    "dependencies": {
        "YapDatabase": [
            "~> 2.9"
        "SwiftyJSON": [
            "~> 3.1"
        "JWTDecode": [
            "~> 2"
        "Alamofire": [
            "~> 4"
    "pushed_with_swift_version": "3.0"

Pin It on Pinterest

Share This