I have an array of SwiftyJson data that I have declared and filled it with data .The code I\'m using to fill the hoge array is this : self.hoge = JSON(data: data!)
self.hoge = JSON(data: data!)
You can use the merge function for this. https://github.com/SwiftyJSON/SwiftyJSON#merging
merge
var array: JSON = [1, 2, 3] array = try! array.merged(with: [4]) // -> [1, 2, 3, 4]