swifty-json Questions
7
This is my json to parse (example):
[
{
"id": 1,
"name": "Team name",
"shower": {
"id": 1,
"status": 1,
"startLocation": {
"id": 1,
"name": "abc 16"
}
}
},
{
"id": 2,
"name": "Team ...
Datcha asked 10/12, 2016 at 15:1
9
Solved
in my iOS project I need to save an entire JSON as user data and then reload it on next app launch.
Squashing it into many values and then recreate the JSON is not an option, I just need some seria...
Spiritualty asked 3/3, 2016 at 17:59
3
Solved
I have a JSON array (say, dataObj) generated by SwiftyJSON and I try to remove its element like this:
let count=dataObj.count
for var m=x; m<count; ++m {
dataObj[m] = nil // there is no remove...
Lehmann asked 17/1, 2016 at 8:14
7
Solved
My JSON data
{
"addon_items" : [
{
"aname" : "",
"id" : "2588",
"name" : "Plain Nan",
"order" : "1",
"aid" : "259",
"Sub_Add_Items" : "",
"icon" : "",
"status" : "1",
"next" : "0",
"pr...
Elmaelmajian asked 27/7, 2016 at 11:52
5
Solved
The string to convert:
[{"description": "Hi","id":2,"img":"hi.png"},{"description": "pet","id":10,"img":"pet.png"},{"description": "Hello! :D","id":12,"img":"hello.png"}]
The code to convert the...
Becquerel asked 19/4, 2016 at 22:37
7
I had some working code that was getting results from a MySQL DB on a remote web server. It is no longer working and I keep getting the message responseSerializationFailed(Alamofire.AFError.Respons...
Metalline asked 18/9, 2017 at 16:29
1
Solved
After having a double variable initialized with 0.1 value and encoding it to JSON via SwiftyJSON I receive 0.10000000000000001 in JSON structure.
I'm aware of precision memory storage differences ...
Libbielibbna asked 27/6, 2019 at 6:58
7
Solved
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!)
but I need to append new swiftyJS...
Confectioner asked 14/3, 2015 at 6:46
1
I received the following response from server
"transactionInfo": {
"currencyCode": "MYR",
"total": 472.23,
"roomCurrencyCode": "MYR",
"roomTotal": 472.23
}
but when I am trying to convert us...
Callen asked 5/2, 2018 at 2:30
5
Solved
I have a swiftyJSON object that looks like for example:
[{
"location" : "http://...",
"img" : "http://...",
"commentCount" : 0,
"timestamp" : 1432460217550,
}]
I want to be able to append a...
Chargeable asked 24/5, 2015 at 19:33
2
I am new in Swift 4 and trying to figure out How to convert Json to swift Object automatically like Gson in java. Is there is any plugin i can use which can convert my json to object and vice versa...
Appealing asked 19/7, 2017 at 10:31
11
After migrating to Swift 3.0, I am trying to import SwiftyJSON into my project. However, when I import the framework 'import SwiftyJSON' I get a No Such Module error.
If I remove the import statem...
Exarate asked 25/7, 2016 at 15:49
6
Solved
I m using Alamofire and SwiftyJSOn to parse JSON output. It works very well however some sites give json with escaped output. I use Alamofire like below
Alamofire.request(.POST, url, parameters...
Renferd asked 23/3, 2015 at 16:0
5
Solved
I have a json that I could parse with SwiftyJSON :
if let title = json["items"][2]["title"].string {
println("title : \(title)")
}
Works perfectly.
But I couldn't loop through it. I tried two ...
Maurreen asked 6/2, 2015 at 12:36
3
Solved
I'm using SwiftyJSON to get a JSON from my web service. What's the easiest way to convert this into a swift object represenation?
I mean maybe a website like http://www.jsonschema2pojo.org/ which ...
Consultation asked 5/6, 2018 at 1:29
4
I have an array of dictionaries that I am trying to post to Alamofire with the help of SwiftyJSON.
The api is set to take:
[
{
"imageUrl": "someimage3.jpg"
},
{
"imageUrl": "someimage4.jpg"...
Neurology asked 26/4, 2018 at 5:59
9
Solved
I upgraded Xcode to 8.1 GM and am now getting the below error for SwiftyJSON. Other imported frameworks seem to work. Is there a way to force this to work in Swift 3 until SwiftyJSON upgrades their...
Wrack asked 25/10, 2016 at 21:54
4
[
{
"cont": 9714494770,
"id": "1",
"name": "Kakkad"
},
{
"cont": 9714494770,
"id": "2",
"name": "Ashish"
}
]
The one above is a json array filled with JSON objects. I don't know how to ...
Annadiana asked 20/4, 2015 at 20:15
2
Solved
I'm using the SwiftyJSON library to parse JSON into swift objects. I can create the JSON object and read and write to it
// Create json object to represent library
var libraryObject = JSON(["name"...
Gaillardia asked 30/6, 2015 at 15:12
3
Solved
I have a json which is array of dictionary
response.text = [{
"id": "4635465675",
"name": "Arts",
"pluralName": "Arts",
"shortName": null
}]
json = JSON((response.text)?.data(using: .utf8))
How ...
Complacent asked 5/3, 2018 at 9:59
1
Solved
I have an array from JSON response. In this array from 0-20 positions. In every position can be an image or video. From the cycle I get the urls with images and videos. Sometimes I had 8 images and...
Myriagram asked 26/2, 2018 at 22:14
4
Solved
Given below is my custom swift class. My Question is how to convert an object of this class to a json string using SwiftyJson?
class Equipment{
var UniqueItemId:String? = ""
var ItemNo:String?...
Albinus asked 14/1, 2016 at 7:10
4
Solved
i have a json data which gives the following information:
let data = [
{
"QuestionTitle" : "Entomology is the science that studies",
"Id" : 205,
"Options" : [
{ "Option" : "Insects", "Id" : 8...
Woad asked 2/8, 2017 at 9:56
3
Solved
I have added a JSON-file to my file-system where the data is structured like this:
{ "DDD" : "3D Systems Corporation", "MMM" : "3M Company", "WBAI" :
"500.com Limited", "WUBA" : "58.com Inc.", ...
Refrain asked 28/2, 2015 at 17:2
2
Solved
I know there is a question with same title here. But in that question, he is trying to convert a dictionary into JSON. But I have a simple sting like this:
"garden"
And I have to send it as JSON....
Fijian asked 8/4, 2016 at 8:4
1 Next >
© 2022 - 2024 — McMap. All rights reserved.