json

From Rock3r, 8 Years ago, written in JavaScript, viewed 882 times. This paste will explode in 1 Second.
URL https://paste.godclan.hu/view/zaalcqHx Embed
Download Paste or View Raw
  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