json

By Rock3r, 3 Years ago (2016-11-13 15:30:08), written in JavaScript, viewed 419 times.
URL https://paste.godclan.hu/view/zaalcqHx Embed
Download Paste or View RawExpand paste to full width of browser
  1. var json = {
  2.     "movies": {
  3.         "details": [{
  4.             "title": "apple",
  5.             "gerne": 1999},
  6.         {
  7.             "title": "lofasz",
  8.             "gerne": 2000}]
  9.     }
  10. };
  11. $.each(json.movies.details, function(i, v) {
  12.     if (v.title == "lofasz") {
  13.         alert(v.gerne);
  14.         return;
  15.     }
  16. });

Reply to "json"

Here you can reply to the paste above