Click here to Skip to main content
15,886,639 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

i have json result as

"[{\"property\":{\"id\":52965,\"availability\":true,\"price\":\"537.67\",\"taxes_and_fees\":\"17.74\",\"currency\":\"EUR\",\"price_guest_pays\":\"555.41\",\"instant_booking\":true,\"summary\":{\"name\":\"r Markt \",\"type_of_property\":\"apartment\",\"description\":\"Situated in Berlin, this 2 bedroom apartment accommodates up to 4 guests and starts at just EUR 107 per night.\\n\\nThe accommodation is 80 sqm.\",\"latitude\":\"52.523385516524\",\"longitude\":\"13.403245984594\",\"minimum_days_of_stay\":3,\"photo_url\":\"http://photos/images/riginal.JPG?1369132905\"}}},

{\"property\":{\"id\":128629,\"availability\":true,\"price\":\"381.88\",\"taxes_and_fees\":\"12.60\",\"currency\":\"EUR\",\"price_guest_pays\":\"394.48\",\"instant_booking\":true,\"summary\":{\"name\":\"Schönes Apartment in ruhiger Lage\",\"type_of_property\":\"apartment\",\"description\":\" in, this 1 bedroom apartment guests and starts at just EUR 76 per night.\\n\\nIt also has internet (wifi) access. It features 1 double bed and 1 sofa bed / futon and has 1 bathroom. in.\",\"latitude\":\"52.501988\",\"longitude\":\"13.4907356\",\"minimum_days_of_stay\":1,\"photo_url\":\"http:///photos/images/50021ginal.JPG?1395345543\",}}},

{\"property\":{\"id\":173031,\"availability\":true,\"price\":\"352.50\",\"taxes_and_fees\":\"11.63\",\"currency\":\"EUR\",\"price_guest_pays\":\"364.13\",\"instant_booking\":true,\"summary\":{\"name\":\"Bunte Oase im Grünen\",\"type_of_property\":\"apartment\",\"description\":\" n Berlin, this 2 bedroom apartm tarts at just EUR 70 per night.\\n\\nThe accommodation is 84 sqm. It is located on the 1st floor.\\n\\n in.\",\"latitude\":\"52.4377108\",\"longitude\":\"13.4791694\",\"minimum_days_of_stay\":3,\"photo_url\":\"http:// photos/images/563al.jpg?1401813914\",\"landing_page_url\":\"https://affiliate.housetrip.com/en/properties/173031\"}}},

{\"property\":{\"id\":174914,\"availability\":true,\"price\":\"287.88\",\"taxes_and_fees\":\"9.50\",\"currency\":\"EUR\",\"price_guest_pays\":\"297.38\",\"instant_booking\":true,\"summary\":{\"name\":\"Berlin, Du bist so wunderbar, 1\",\"type_of_property\":\"apartment\",\"description\":\"Situated in Berlin, this 1 bedroom apartment accommodates up to 6 guests and starts at just EUR 57 per night.\\n\\nThe accommodation is 58 sqm. It is located on the 3rd floor.\\n\\nThis apartment is child-friendly. It also has internet (wifi, cable) access. It features 1 double bed and 2 sofa beds / futons and has 1 bathroom. in.\",\"latitude\":\"52.5489199\",\"longitude\":\"13.3477634\",\"minimum_days_of_stay\":2,\"photo_url\":\"http:///photos/images/23s.jpg?1359313853\",}}},


And i need to read this json result into array in asp.net ,

how to read this into array like example.


array['id']=14751
array['price']=114.99
Posted
Comments
Mehdi Gholam 3-Jul-15 1:37am    
You have to follow the structure of the json.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900