Advertisement
Guest User

Untitled

a guest
Jan 16th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. //pretty printing JSON => JSON.stringify(obj, null, 2);
  2. var product = {
  3. "productTypeCode": "productTypeEnergy",
  4. "quantities": [
  5. {
  6. "period": {
  7. "startDate": "2017-01-13T05:00:00.000Z",
  8. "endDate": "2017-01-31T05:00:00.000Z",
  9. "dayType": {
  10. "normal": true,
  11. "holiday": true
  12. },
  13. "specificDays": [
  14. "monday",
  15. "wednesday",
  16. "friday"
  17. ],
  18. "loadType": {
  19. "high": true,
  20. "medium": false,
  21. "low": false
  22. }
  23. },
  24. "type": "DemandPercentage",
  25. "quantityValue": "44"
  26. },
  27. {
  28. "period": {
  29. "startDate": "2017-01-13T05:00:00.000Z",
  30. "endDate": "2017-01-31T05:00:00.000Z",
  31. "dayType": {
  32. "normal": true,
  33. "holiday": true
  34. },
  35. "loadType": {
  36. "high": false,
  37. "medium": true,
  38. "low": false
  39. }
  40. },
  41. "type": "Value",
  42. "quantityValue": "22"
  43. }
  44. ]
  45. };
  46.  
  47. var period = {
  48. "startDate": "2017-01-08T05:00:00.000Z",
  49. "endDate": "2017-01-29T05:00:00.000Z",
  50. "dayType": {
  51. "normal": true,
  52. "holiday": true
  53. },
  54. "loadType": {
  55. "high": true,
  56. "medium": false,
  57. "low": true
  58. }
  59. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement