Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //pretty printing JSON => JSON.stringify(obj, null, 2);
- var product = {
- "productTypeCode": "productTypeEnergy",
- "quantities": [
- {
- "period": {
- "startDate": "2017-01-13T05:00:00.000Z",
- "endDate": "2017-01-31T05:00:00.000Z",
- "dayType": {
- "normal": true,
- "holiday": true
- },
- "specificDays": [
- "monday",
- "wednesday",
- "friday"
- ],
- "loadType": {
- "high": true,
- "medium": false,
- "low": false
- }
- },
- "type": "DemandPercentage",
- "quantityValue": "44"
- },
- {
- "period": {
- "startDate": "2017-01-13T05:00:00.000Z",
- "endDate": "2017-01-31T05:00:00.000Z",
- "dayType": {
- "normal": true,
- "holiday": true
- },
- "loadType": {
- "high": false,
- "medium": true,
- "low": false
- }
- },
- "type": "Value",
- "quantityValue": "22"
- }
- ]
- };
- var period = {
- "startDate": "2017-01-08T05:00:00.000Z",
- "endDate": "2017-01-29T05:00:00.000Z",
- "dayType": {
- "normal": true,
- "holiday": true
- },
- "loadType": {
- "high": true,
- "medium": false,
- "low": true
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement