1{
2    "Valid Case": {
3        "ResourceID": 234,
4        "ReadCase1": {
5            "Read": [{
6                "LockFlag": "LockAll",
7                "SegmentLength": 2
8            }, {
9                "LockFlag": "DontLock",
10                "SegmentLength": 1
11            }]
12        },
13        "ReadCase2": {
14            "Read": [{
15                "LockFlag": "DontLock",
16                "SegmentLength": 3
17            }, {
18                "LockFlag": "LockAll",
19                "SegmentLength": 1
20            }]
21        },
22        "ReadCase3": {
23            "Read": [{
24                "LockFlag": "DontLock",
25                "SegmentLength": 4
26            }, {
27                "LockFlag": "LockSame",
28                "SegmentLength": 3
29            }]
30        },
31        "WriteCase1": {
32            "Write": [{
33                "LockFlag": "LockAll",
34                "SegmentLength": 2
35            }, {
36                 "LockFlag": "DontLock",
37                 "SegmentLength": 1
38            }]
39        },
40        "WriteCase2": {
41            "Write": [{
42                "LockFlag": "DontLock",
43                "SegmentLength": 3
44            }, {
45                "LockFlag": "LockAll",
46                "SegmentLength": 1
47            }]
48        },
49        "WriteCase3": {
50            "Write": [{
51                "LockFlag": "DontLock",
52                "SegmentLength": 4
53            }, {
54                "LockFlag": "LockSame",
55                "SegmentLength": 3
56            }]
57         }
58
59    },
60    "Invalid Case": {
61        "ResourceIDInvalidDataType": "234",
62        "ReadCase1": {
63            "read": [{
64                "LockFlag": "DontLock",
65                "SegmentLength": 3
66            }, {
67                "LockFlag": "LockSame",
68                "SegmentLength": 1
69            }]
70        },
71        "ReadCase2": {
72            "READ": [{
73                "LockFlag": "DontLock",
74                "SegmentLength": 3
75            }, {
76                "LockFlag": "LockSame",
77                "SegmentLength": 1
78            }]
79        },
80        "ReadCase3": {
81            "Red": [{
82                "LockFlag": "DontLock",
83                "SegmentLength": 3
84            }, {
85                "LockFlag": "LockSame",
86                "SegmentLength": 1
87            }]
88        },
89        "ReadCase4": {
90            "*Read": [{
91                "LockFlag": "DontLock",
92                "SegmentLength": 3
93            }, {
94                "LockFlag": "LockSame",
95                "SegmentLength": 1
96            }]
97        },
98        "ReadCase5": {
99            "ReaD": [{
100                "LockFlag": "DontLock",
101                "SegmentLength": 3
102            }, {
103                "LockFlag": "LockSame",
104                "SegmentLength": 1
105            }]
106         },
107         "ReadCase6": {
108             "Read": [{
109                 "LockFlag": "lockall",
110                 "SegmentLength": 1
111              }]
112          },
113          "ReadCase7": {
114              "Read": [{
115                  "LockFlag": "DontLock",
116                  "SegmentLength": 3
117              }, {
118                  "LockFlag": "locksame",
119                  "SegmentLength": 1
120              }]
121          },
122          "ReadCase8": {
123              "Read": [{
124                  "LockFlag": "dontlock",
125                  "SegmentLength": 3
126              }, {
127                  "LockFlag": "locksame",
128                  "SegmentLength": 1
129              }]
130          },
131          "ReadCase9": {
132              "Read": [{
133                  "LockFlag": "ontLock",
134                  "SegmentLength": 3
135              }, {
136                  "LockFlag": "LockAll",
137                  "SegmentLength": 1
138              }]
139          },
140          "ReadCase10": {
141              "Read": [{
142                  "LockFlag": "*DontLock",
143                  "SegmentLength": 3
144              }, {
145                  "LockFlag": "LockAll",
146                  "SegmentLength": 1
147              }]
148          },
149          "ReadCase11": {
150              "Read": [{
151                  "LockFlag": "dontlock",
152                  "SegmentLength": 3
153              }, {
154                  "LockFlag": "lockall",
155                  "SegmentLength": 1
156              }]
157          },
158          "ReadCase12": {
159              "Read": [{
160                  "LockFlag": "DontLock",
161                  "SegmentLength": 7
162              }, {
163                  "LockFlag": "LockAll",
164                  "SegmentLength": 0
165              }]
166          },
167          "ReadCase13": {
168              "Read": [{
169                  "LockFlag": "DontLock",
170                  "SegmentLength": 3
171              }, {
172                  "LockFlag": "LockAll",
173                  "SegmentLength": 0
174              }]
175          },
176          "ReadCase14": {
177              "Read": [{
178                  "LockFlag": "DontLock",
179                  "SegmentLength": 7
180              }, {
181                  "LockFlag": "LockAll",
182                  "SegmentLength": 1
183              }]
184          },
185          "ReadCase15": {
186              "Read": [{
187                  "LockFlag": "DontLock",
188                  "SegmentLength": "3"
189              }, {
190                  "LockFlag": "LockAll",
191                  "SegmentLength": 1
192              }]
193          },
194          "ReadCase16": {
195              "Read": [{
196                  "LockFlag": "DontLock",
197                  "SegmentLength": 3
198              }, {
199                  "LockFlag": "LockAll",
200                  "SegmentLength": "1"
201              }]
202          },
203          "ReadCase17": {
204              "Read": [{
205                  "LockFlag": "DontLock",
206                  "SegmentLength": "Three"
207              }, {
208                  "LockFlag": "LockAll",
209                  "SegmentLength": 1
210              }]
211          },
212          "ReadCase18": {
213              "Read": [{
214                  "LockFlag": "DontLock",
215                  "SegmentLength": 3
216              }, {
217                  "LockFlag": "LockAll",
218                  "SegmentLength": "One"
219              }]
220          },
221          "WriteCase1": {
222              "write": [{
223                  "LockFlag": "DontLock",
224                  "SegmentLength": 3
225              }, {
226                  "LockFlag": "LockSame",
227                  "SegmentLength": 1
228              }]
229          },
230          "WriteCase2": {
231              "WRITE": [{
232                  "LockFlag": "DontLock",
233                  "SegmentLength": 3
234              }, {
235                  "LockFlag": "LockSame",
236                  "SegmentLength": 1
237              }]
238          },
239          "WriteCase3": {
240              "*Write": [{
241                  "LockFlag": "DontLock",
242                  "SegmentLength": 3
243              }, {
244                  "LockFlag": "LockSame",
245                  "SegmentLength": 1
246              }]
247          },
248          "WriteCase4": {
249              "Wrte": [{
250                  "LockFlag": "DontLock",
251                  "SegmentLength": 3
252              }, {
253                  "LockFlag": "LockSame",
254                  "SegmentLength": 1
255              }]
256          },
257          "WriteCase5": {
258              "WritE": [{
259                  "LockFlag": "DontLock",
260                  "SegmentLength": 3
261              }, {
262                  "LockFlag": "LockSame",
263                  "SegmentLength": 1
264              }]
265          },
266          "WriteCase6": {
267              "Write": [{
268                  "LockFlag": "lockall",
269                  "SegmentLength": 1
270              }]
271          },
272          "WriteCase7": {
273              "Write": [{
274                  "LockFlag": "DontLock",
275                  "SegmentLength": 3
276              }, {
277                  "LockFlag": "locksame",
278                  "SegmentLength": 1
279              }]
280          },
281          "WriteCase8": {
282              "Write": [{
283                  "LockFlag": "dontlock",
284                  "SegmentLength": 3
285              }, {
286                  "LockFlag": "locksame",
287                  "SegmentLength": 1
288              }]
289          },
290          "WriteCase9": {
291              "Write": [{
292                  "LockFlag": "ontLock",
293                  "SegmentLength": 3
294              }, {
295                  "LockFlag": "LockAll",
296                  "SegmentLength": 1
297              }]
298          },
299          "WriteCase10": {
300              "Write": [{
301                  "LockFlag": "*DontLock",
302                  "SegmentLength": 3
303              }, {
304                  "LockFlag": "LockAll",
305                  "SegmentLength": 1
306              }]
307          },
308          "WriteCase11": {
309              "Write": [{
310                  "LockFlag": "dontlock",
311                  "SegmentLength": 3
312              }, {
313                  "LockFlag": "lockall",
314                   "SegmentLength": 1
315              }]
316          },
317          "WriteCase12": {
318              "Write": [{
319                  "LockFlag": "DontLock",
320                  "SegmentLength": 7
321              }, {
322                  "LockFlag": "LockAll",
323                  "SegmentLength": 0
324              }]
325          },
326          "WriteCase13": {
327              "Write": [{
328                  "LockFlag": "DontLock",
329                  "SegmentLength": 3
330              }, {
331                  "LockFlag": "LockAll",
332                  "SegmentLength": 0
333              }]
334          },
335          "WriteCase14": {
336              "Write": [{
337                  "LockFlag": "DontLock",
338                  "SegmentLength": 7
339              }, {
340                  "LockFlag": "LockAll",
341                  "SegmentLength": 1
342              }]
343          },
344          "WriteCase15": {
345              "Write": [{
346                  "LockFlag": "DontLock",
347                  "SegmentLength": "3"
348              }, {
349                  "LockFlag": "LockAll",
350                  "SegmentLength": 1
351              }]
352          },
353          "WriteCase16": {
354              "Write": [{
355                  "LockFlag": "DontLock",
356                  "SegmentLength": 3
357              }, {
358                  "LockFlag": "LockAll",
359                  "SegmentLength": "1"
360              }]
361          },
362          "WriteCase17": {
363              "Write": [{
364                  "LockFlag": "DontLock",
365                  "SegmentLength": "Three"
366              }, {
367                  "LockFlag": "LockAll",
368                  "SegmentLength": 1
369              }]
370          },
371          "WriteCase18": {
372              "Write": [{
373                  "LockFlag": "DontLock",
374                  "SegmentLength": 3
375              }, {
376                  "LockFlag": "LockAll",
377                  "SegmentLength": "One"
378              }]
379          }
380    }
381}
382