Advertisement
AkashSaikia

Calendar API response structure

Mar 26th, 2015
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  var data = [
  2.         {
  3.             date: "01-01-2015", // "Month-year-date"
  4.             arrLeaves: [
  5.                 {
  6.                     name: "Akash",
  7.                     from: "01-01-2015",
  8.                     to: "01-01-2015",
  9.                     leaveType: "paid"
  10.                 },
  11.                 {
  12.                     name: "Bhavesh",
  13.                     from: "01-01-2015",
  14.                     to: "01-05-2015",
  15.                     leaveType: "annual"
  16.                 }
  17.             ]
  18.         },
  19.         {
  20.             date: "01-02-2015", // "Month-year-date"
  21.             arrLeaves: [
  22.                 {
  23.                     name: "Bhavesh",
  24.                     from: "01-01-2015",
  25.                     to: "01-05-2015",
  26.                     leaveType: "annual"
  27.                 }
  28.             ]
  29.         },
  30.         {
  31.             date: "01-03-2015", // "Month-year-date"
  32.             arrLeaves: [
  33.                 {
  34.                     name: "Bhavesh",
  35.                     from: "01-01-2015",
  36.                     to: "01-05-2015",
  37.                     leaveType: "annual"
  38.                 }
  39.             ]
  40.         },
  41.         {
  42.             date: "01-04-2015", // "Month-year-date"
  43.             arrLeaves: [
  44. //                {
  45. //                    name: "Suresh",
  46. //                    from: "01-04-2015",
  47. //                    to: "01-05-2015"
  48. //                },
  49.                 {
  50.                     name: "Bhavesh",
  51.                     from: "01-01-2015",
  52.                     to: "01-05-2015",
  53.                     leaveType: "annual"
  54.                 }
  55.             ]
  56.         },
  57.         {
  58.             date: "01-05-2015", // "Month-year-date"
  59.             arrLeaves: [
  60.                 {
  61.                     name: "Bhavesh",
  62.                     from: "01-01-2015",
  63.                     to: "01-05-2015",
  64.                     leaveType: "annual"
  65.                 }
  66.             ]
  67.         },
  68.         {
  69.             date: "01-06-2015", // "Month-year-date"
  70.             arrLeaves: [
  71.                 {
  72.                     name: "Lini",
  73.                     from: "01-06-2015",
  74.                     to: "01-06-2015",
  75.                     leaveType: "business"
  76.                 }
  77.             ]
  78.         }
  79.     ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement