Skip to content

Commit

Permalink
Updating the SwiftyJSON language definition to match the current vers…
Browse files Browse the repository at this point in the history
…ion of SwiftyJson
  • Loading branch information
jmonroe committed Jan 12, 2015
1 parent 9871662 commit 0b4f73f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions JSONExport/PredefinedLanguages/SwiftyJSON-Class.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"setter" : "",
"getter" : "",
"booleanGetter" : "",

"wordsToRemoveToGetArrayElementsType": [
"[",
"]"
Expand All @@ -34,7 +34,7 @@
"Int", "Bool", "Character", "Float", "Double", "String", "AnyObject"
],
"basicTypesWithSpecialFetchingNeedsReplacements" : [
"integerValue", "boolValue", "charValue", "floatValue", "doubleValue", "stringValue", "stringValue"
"intValue", "boolValue", "charValue", "floatValue", "doubleValue", "stringValue", "stringValue"
],
"constructors": [
{
Expand All @@ -45,8 +45,8 @@
"fetchBasicTypePropertyFromMap": "",
"fetchBasicTypeWithSpecialNeedsPropertyFromMap": "\t\t<!VarName!> = json[\"<!JsonKeyName!>\"].<!VarBasicTypeReplacement!>\n",
"fetchCustomTypePropertyFromMap": "\t\tlet <!VarName!>Json = json[\"<!JsonKeyName!>\"]\n\t\tif <!VarName!>Json != JSON.Null(nil){\n\t\t\t<!VarName!> = <!VarType!>(fromJson: <!VarName!>Json)\n\t\t}\n",
"fetchArrayOfCustomTypePropertyFromMap": "\t\t<!VarName!> = <!VarType!>()\n\t\tif let <!VarName!>Array = json[\"<!JsonKeyName!>\"].arrayValue{\n\t\t\tfor <!VarName!>Json in <!VarName!>Array{\n\t\t\t\tlet value = <!ElementType!>(fromJson: <!VarName!>Json)\n\t\t\t\t<!VarName!>.append(value)\n\t\t\t}\n\t\t}\n",
"fetchArrayOfBasicTypePropertyFromMap": "\t\t<!VarName!> = <!VarType!>()\n\t\tif let <!VarName!>Array = json[\"<!JsonKeyName!>\"].arrayValue{\n\t\t\tfor <!VarName!>Json in <!VarName!>Array{\n\t\t\t\tif let <!VarName!>Value = <!VarName!>Json.<!VarBasicTypeReplacement!>{\n\t\t\t\t\t<!VarName!>.append(<!VarName!>Value)\n\t\t\t\t}\n\t\t\t}\n\t\t}\n"
"fetchArrayOfCustomTypePropertyFromMap": "\t\t<!VarName!> = <!VarType!>()\n\t\tlet <!VarName!>Array = json[\"<!JsonKeyName!>\"].arrayValue\n\t\tfor <!VarName!>Json in <!VarName!>Array{\n\t\t\tlet value = <!ElementType!>(fromJson: <!VarName!>Json)\n\t\t\t<!VarName!>.append(value)\n\t\t}\n",
"fetchArrayOfBasicTypePropertyFromMap": "\t\t<!VarName!> = <!VarType!>()\n\t\tlet <!VarName!>Array = json[\"<!JsonKeyName!>\"].arrayValue\n\t\tfor <!VarName!>Json in <!VarName!>Array{\n\t\t\tif let <!VarName!>Value = <!VarName!>Json.<!VarBasicTypeReplacement!>{\n\t\t\t\t<!VarName!>.append(<!VarName!>Value)\n\t\t\t}\n\t\t}\n"
}
],
"utilityMethods": [
Expand All @@ -62,4 +62,4 @@
"returnStatement": "\t\treturn dictionary\n"
}
]
}
}

0 comments on commit 0b4f73f

Please sign in to comment.