silmarion
Полезный
- Регистрация
- 21 Июн 2012
- Сообщения
- 194
- Реакции
- 19
- Автор темы
- #1
Добрый день всем, есть скрипт, который подгружает Json данные из стороннего файла, и выводит их на страницу.
Необходимо получать эту инфу, и менять в ней данные перед выводом на страницу. Это возможно?
Вот пример получаемых скриптом данных
мне нужно перед тем как скрипт выведет инфу на страницу изменить некоторые данные, к примеру:
"Heating" сменить на "Отопление"
"Sauna" сменить на "Сауна"
ну и тд
С меня пиво
Необходимо получать эту инфу, и менять в ней данные перед выводом на страницу. Это возможно?
Вот пример получаемых скриптом данных
Код:
{"description":"Gorgeous2 BR + den that can be converted into a 3 bedroom. Custom finishes throughout, including luxurious marble and substantial upgrades. Private elevator, S/S appliances and never ending views! Flow through floor plan with both East and West Exposures.","features":{"Appliances":["Dishwasher","Dryer","Icemaker","Microwave","Electric Range","Refrigerator","Washer"],"Restrictions":["No Restrictions"],"Furnished":["Furnished"],"Waterfront":["Bay Front"],"Flooring":["Marble Floors"],"Cooling":["Central Cooling"],"Master Bedroom/Bath":["Dual Sinks"],"Amenities":["Business Center","Cabana","Community Room","Exercise Room","Other","Child Play Area","Pool","Sauna"],"Interior":["Elevator","Foyer Entry","Walk-In Closets"],"Maintenance Fee Includes":["Common Area","Manager","Water"],"Governing Bodies":["Condominium"],"Construction":["Pre-Cast Concrete Construction"],"HOA Fee/Month":["1169"],"Security":["Doorman","Elevator Secure","Lobby Secured"],"Heating":["Central Heat"],"Garage/Carport":["1"],"Dining Area":["Dining/Living Room"],"Exterior":["Open Balcony"],"Pet Restrictions":["More Than 20 Lbs"],"Parking":["1 Space"],"Application Fee":["0"]},"_id":"74_A1988767","address":"2020 North BAYSHORE DR","tax_year":"2013","high_school":null,"short_sale":false,"indexed_dts":"2014-10-24T07:08:24Z","building":"Paramount Bay","taxes":14673,"idx_detail_disclaimer":"The data relating to real estate for sale on this web site comes in part from Miami Association of Realtors, Realtor Association of Greater Ft. Lauderdale, and the South Broward Board of Realtors.\n \nInformation is deemed reliable but not guaranteed. Copyright 2014, Miami Association of Realtors, Realtor Association of Greater Ft. Lauderdale, and the South Broward Board of Realtors. All rights reserved. The information being provided is for consumers' personal, non-commercial use and may not be used for any purpose other than to identify prospective properties consumers may be interested in purchasing. Use of search facilities of data on the site, other than a consumer looking to purchase real estate, is prohibited.\n \nListing Courtesy of: Douglas Elliman\n","internal_id":"339814619","listing_agent_id":"3274283","images":["http://cdn.showcaseidx.com/mls_images/74/A198/A1988767/339814619-1.jpg","http://cdn.showcaseidx.com/mls_images/74/A198/A1988767/339814619-2.jpg","http://cdn.showcaseidx.com/mls_images/74/A198/A1988767/339814619-3.jpg"],"middle_school":null,"listing_office_id":"DEOM10","city":"Miami","county":"Miami Dade, FL","year_built":"2011","longitude":-80.187133,"state":"FL","subdivision":null,"property_type_id":2,"first_seen_dts":"2014-08-16T07:09:26Z","orig_mls_number":"A1988767","img_change_dts":"2014-10-02T10:39:15.000Z","elementary_school":null,"status":"Active-Available","zip":"33137","bedrooms":2,"lnglat":[-80.187133,25.795681],"citystate":"Miami, FL","mls_number":"74_A1988767","unit_number":"906","virtual_tour_url":"http://instatour.propertypanorama.com/instaview/mia/A1988767","listing_agent":null,"latitude":25.795681,"listing_office":"Douglas Elliman","foreclosure":false,"bathrooms":2,"service_id":74,"sqft":1782,"price_change_dts":null,"price":1000000,"latlng":[25.795681,-80.187133],"halfbaths":1,"skip":false}
"Heating" сменить на "Отопление"
"Sauna" сменить на "Сауна"
ну и тд
С меня пиво
Последнее редактирование: