-
Notifications
You must be signed in to change notification settings - Fork 0
/
data.cfm
126 lines (123 loc) · 2.16 KB
/
data.cfm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<cfscript>
query = queryNew( "id,strFirstName,familyname,distributorid,active", "integer,varchar,varchar,integer,bit", [
[233,"Evagoras","Charalambous",12345,true]
]);
struct = {
id = 233,
title = "Dr",
strfirstname = "Evagoras",
familyname = "Charalambous",
distributorid = 12345,
active = true,
billingAddress = {
organisation = "my company",
address1 = "Street 1",
telephone = "12345"
},
shippingAddress = {
address2 = "Street 2",
"city" = "London"
},
items = [
{
id = 1,
quantity = 3,
unitcost = 4.56
},
{
id = 2,
size = 4,
unitcost = 10.00
}
]
};
json = '{
"ID": 233,
"firstName": "Evagoras",
"familyName": "Charalambous",
"distributorID": 12345,
"active": true,
"billingAddress": {
"username": null,
"attention": null,
"organisation": "my company",
"address1": "Street 1",
"address2": null,
"city": null,
"county": null,
"country2LCode": null,
"postcode": null,
"email": null,
"telephone": "12345"
},
"shippingAddress": {
"username": null,
"attention": null,
"organisation": null,
"address1": null,
"address2": "Street 2",
"city": "London",
"county": null,
"country2LCode": null,
"postcode": null,
"email": null,
"telephone": null
},
"items": [
{
"id": 1,
"size": null,
"quantity": 3,
"unit": null,
"productCode": null,
"description": null,
"unitCost": 4.56,
"totalUnitsCost": null,
"totalUnitsDiscount": null,
"status": null,
"purchaseOrderNumber": null
},
{
"id": 2,
"size": 4,
"quantity": null,
"unit": null,
"productCode": null,
"description": null,
"unitCost": 10.00,
"totalUnitsCost": null,
"totalUnitsDiscount": null,
"status": null,
"purchaseOrderNumber": null
}
]
}';
jsonminimum = '{
"billingAddress": {
"telephone": "12345",
"organisation": "my company",
"address1": "Street 1"
},
"shippingAddress": {
"address2": "Street 2",
"city": "London"
},
"distributorID": 12345,
"items": [
{
"id": 1,
"quantity": 3,
"unitCost": 4.56
},
{
"size": 4,
"id": 2,
"unitCost": 10.00
}
],
"ID": 233,
"firstName": "Evagoras",
"active": true,
"familyName": "Charalambous"
}';
</cfscript>