Comments (6)
Hmm. It supposed to parse it. Can you send the example JSON?
from marshal.
@ttuygun Example response for 1 item :
{
"PropertiesResponse": {
"Properties": [
{
"id": 2289,
"is_passive": 0,
"lead_id": null,
"agent_id": 3302,
"contact_first_name": “Name”,
"contact_last_name": “LastName”,
"is_office_page_property": 1,
"user_listing_url_type": 1,
"is_shareable": 1,
"category_id": 1,
"status": 2,
"type": 1,
"price": 5700000,
"price_currency": 1,
"ad_type": 1,
"latitude": 10.000000000,
"longitude": 100000000000,
"area": 245,
"room": 4,
"saloon_count": 1,
"age": 0,
"floor": 14,
"total_floor": 15,
"district_id": 1111111111,
"source_property_id": 1111111111,
"url": “url”,
"title": “Title”,
"description": “Description”,
"User": {
"id": 3302,
"folder_path": “folder_path”,
"file_name": “file_name.jpg"
},
"County": {
"name": "Kadıköy"
},
"District": {
"name": "Fenerbahçe Mah."
},
"Lead": {
"is_passive": null
},
"PropertyImage": {
"folder_path": “folder_path”,
"file_name": “file_name.jpg"
},
"ReferenceProperty": {
"reference_property_id": null
},
"Prices": {
"price": {
"dollar": {
"symbol": "$",
"price": 1600718
},
"euro": {
"symbol": "€",
"price": 1409530
},
"pound": {
"symbol": "£",
"price": 1235156
},
"turkish_lira": {
"symbol": "TL",
"price": 5700000
}
},
"m2Price": {
"dollar": {
"symbol": "$",
"price": 6533
},
"euro": {
"symbol": "€",
"price": 5753
},
"pound": {
"symbol": "£",
"price": 5041
},
"turkish_lira": {
"symbol": "TL",
"price": 23265
}
}
},
"PropertyStats": {
"similarLeads": 0,
"similarProperties": 0,
"similarOfficeProperties": 0,
"eligibleCustomers": 0,
"totalSimilarListings": 0
},
"Options": {
"type": "Daire ",
"price_currency": "Türk Lirası ",
"age": "Sıfır ",
"floor": "14 ",
"total_floor": "15 ",
"status": “Status”,
"ad_type": “ad_type”
}
}
],
"Pagination": {
"page": 1,
"count": 38,
"pageCount": 38
},
"Return": {
"Status": "OK",
"UserId": 3302,
"OfficeId": 84,
"Message": "Properties Found"
}
}
}
from marshal.
Can you also upload parser models?
from marshal.
I don't have any code unfortunately. I just followed guide for a few key not for all key in response. No exception, no error nothing happened.
from marshal.
Your quotes is not correct in the response of the JSON. Is this issue because of sever or your copy paste mistake? Could you test your JSON in any JSON validation site?
from marshal.
It was my mistake. Here is the correct one, thank you.
{
"PropertiesResponse": {
"Properties": [
{
"id": 2289,
"is_passive": 0,
"lead_id": null,
"agent_id": 3302,
"contact_first_name": "name",
"contact_last_name": "last_name",
"is_office_page_property": 1,
"user_listing_url_type": 1,
"is_shareable": 1,
"category_id": 1,
"status": 2,
"type": 1,
"price": 5700000,
"price_currency": 1,
"ad_type": 1,
"latitude": 40.971476352484849,
"longitude": 29.046548008918759,
"area": 245,
"room": 4,
"saloon_count": 1,
"age": 0,
"floor": 14,
"total_floor": 15,
"district_id": 13402005007,
"source_property_id": 376277648,
"url": "url",
"title": "Title",
"description": "Desc...",
"User": {
"id": 3302,
"folder_path": "path",
"file_name": "5942c2368d4f7.jpg"
},
"County": {
"name": "Kadıköy"
},
"District": {
"name": "Fenerbahçe Mah."
},
"Lead": {
"is_passive": null
},
"PropertyImage": {
"folder_path": "path",
"file_name": "sah_593fe53daf625.jpg"
},
"ReferenceProperty": {
"reference_property_id": null
},
"Prices": {
"price": {
"dollar": {
"symbol": "$",
"price": 1587434
},
"euro": {
"symbol": "€",
"price": 1399769
},
"pound": {
"symbol": "£",
"price": 1227125
},
"turkish_lira": {
"symbol": "TL",
"price": 5700000
}
},
"m2Price": {
"dollar": {
"symbol": "$",
"price": 6479
},
"euro": {
"symbol": "€",
"price": 5713
},
"pound": {
"symbol": "£",
"price": 5008
},
"turkish_lira": {
"symbol": "TL",
"price": 23265
}
}
},
"PropertyStats": {
"similarLeads": 0,
"similarProperties": 0,
"similarOfficeProperties": 0,
"eligibleCustomers": 0,
"totalSimilarListings": 0
},
"Options": {
"type": "Daire ",
"price_currency": "Türk Lirası ",
"age": "Sıfır ",
"floor": "14 ",
"total_floor": "15 ",
"status": "Satılık ",
"ad_type": "ad"
}
}
],
"Pagination": {
"page": 1,
"count": 38,
"pageCount": 38
},
"Return": {
"Status": "OK",
"UserId": 3302,
"OfficeId": 84,
"Message": "Properties Found"
}
}
}
from marshal.
Related Issues (20)
- Progress to user when parsing many records? HOT 2
- Float parsing error HOT 4
- How to serialize an Marshal object to json string
- Getting Error : Ambiguous reference to member 'value(for:inContext:)' HOT 1
- Any example with Swift + CoreData integration of Marshal HOT 3
- Two JSON keys, One Object Property
- Disable 'Gather coverage data' to prevent a bundle submit error with Carthage and Xcode 9 HOT 1
- New release for swift 4 HOT 3
- Cannot build via Carthage without specifying platform HOT 1
- Push podspec to Cocoapods trunk HOT 3
- Make `MarshalError` more descriptive HOT 1
- SIGABRT when accessing dot separated keypath on non-object fileds
- Simplify Marshal using new Swift features HOT 1
- Escaping periods in key paths? HOT 1
- Marshaling Date?
- Looking for example of how to marshal an object to json
- Compiling and using on Linux? HOT 1
- Expected type MarshaledObject for key: node. Got 'Optional<Any>' HOT 1
- Is this project dead? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from marshal.