This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * | |
| * An extension for array that takes JSON as a parameter and tries to parse all elements form the given | |
| * JSON to the Decodable.Type model. Also, in case that the given JSON is not an array type, it will try | |
| * to parse single model and append it to the self. | |
| * | |
| * Useful in situations where JSON sometimes can be object and some other times array, e.g. when converting from XML to JSON. | |
| * | |
| * This extension uses SwiftyJSON as JSON parsing engine, but it can be made to work with other libraries or manual parsing from Dictionary json. | |
| */ |