var hotels = [
{
name: "Яблуниця",
image: "yablunucia.jpg",
price: 2200.00
},
{
name: "Драгобрат",
image: "gasthaus.jpg",
price: 150.00
},
{
name: "Кривопілля",
image: "kruvopillia.jpg",
price: 600.00
}];
console.log( hotels )
var hotels = JSON.parse( $('#myJson').html() );
console.log( hotels )
<script src="/myApp.js"></script>
console.log(hotels)