tx · CTp9jQcjm1vPrpEWqJcR3pfM3WCRmssqjPAFWFd9Fa14

3MrQ4g9YCsAN2Wr4QUXiWAPhNPv7DGdQNWb:  -0.01100000 Waves

2023.03.17 23:20 [2494470] smart account 3MrQ4g9YCsAN2Wr4QUXiWAPhNPv7DGdQNWb > SELF 0.00000000 Waves

{ "type": 13, "id": "CTp9jQcjm1vPrpEWqJcR3pfM3WCRmssqjPAFWFd9Fa14", "fee": 1100000, "feeAssetId": null, "timestamp": 1679084478429, "version": 2, "chainId": 84, "sender": "3MrQ4g9YCsAN2Wr4QUXiWAPhNPv7DGdQNWb", "senderPublicKey": "2VQGRNRWyFAZvjDtkgZwdZcTwZvBJJ61n8zJfYYxm5eK", "proofs": [ "27GDjNYLtHSxKHDnZ7YxmTgmTWv7kVXwQ1wowrSbqKhzKZ1UgA3WuKUZKAoaemsoS4V6s6KeycqLR3jhcKqBSm2L" ], "script": "base64:BgIkCAISBwoFGBgBAQgSBAoCGBgSBQoDCBgYEgQKAggIEgQKAggIFgAIa0pzb25SZXMCB2pzb25SZXMABXF1b3RlCQCwCQEBASIBCW1ha2VGaWVsZAEJbmV4dFZhbHVlAwcJAKwCAgkArAICCQCsAgIJAKwCAgkArAICBQVxdW90ZQgFCW5leHRWYWx1ZQJfMQUFcXVvdGUCAToIBQluZXh0VmFsdWUCXzICASwJAKwCAgkArAICCQCsAgIJAKwCAgkArAICCQCsAgIJAKwCAgUFcXVvdGUIBQluZXh0VmFsdWUCXzEFBXF1b3RlAgE6BQVxdW90ZQgFCW5leHRWYWx1ZQJfMgUFcXVvdGUCASwBD3JlZHVjZXJNYWtlSlNPTgIFYWNjdW0JbmV4dFZhbHVlCQCsAgIFBWFjY3VtCQEJbWFrZUZpZWxkAQUJbmV4dFZhbHVlAQ9pdGVyYXRlTWFrZUpTT04DBnBhcmFtcwNyZXMGbGVuZ3RoAwkAAAIFBmxlbmd0aAAACQACAQINRW1wdHkgIHBhcmFtcwMJAAACBQZsZW5ndGgAAQoAAi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R0MDEzNTI3MTM4NzgJARNkZWxldGVCeUtleUludGVybmFsAgUEanNvbgUDa2V5BBFkZWxldGVkVmFsdWVCeUtleQgFDSR0MDEzNTI3MTM4NzgCXzEEB25ld0pzb24IBQ0kdDAxMzUyNzEzODc4Al8yCQCUCgIJAMwIAgkBC1N0cmluZ0VudHJ5AgIMZGVsZXRlZFZhbHVlBRFkZWxldGVkVmFsdWVCeUtleQkAzAgCCQELU3RyaW5nRW50cnkCBQhrSnNvblJlcwUHbmV3SnNvbgUDbmlsCQCUCgIFEWRlbGV0ZWRWYWx1ZUJ5S2V5BQduZXdKc29uAE3PjFQ=", "height": 2494470, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: E2sfCVfy74p7NhMhqHh7nJZEf6ygUchYbnJA4DfYdCjm Next: 9dgVmxNtsfMkYsJB5QzDYDTwBojPRNUGJh8ZXCUiThc4 Diff:
OldNewDifferences
267267 let leftCount = $t063116360._2
268268 let rightCount = $t063116360._3
269269 let end = $t063116360._4
270- if (!(end))
271- then $Tuple4(((result + next) + "check"), leftCount, rightCount, true)
272- else accum
270+ $Tuple4((result + next), leftCount, rightCount, true)
273271 }
274272
275273
276274 func readByKeyInternal (json,key) = {
277- let $t071757288 = getStartAndEndIndexes(json, key)
278- let keyLen = $t071757288._1
279- let startIndex = $t071757288._2
280- let endIndex = $t071757288._3
275+ let $t071697282 = getStartAndEndIndexes(json, key)
276+ let keyLen = $t071697282._1
277+ let startIndex = $t071697282._2
278+ let endIndex = $t071697282._3
281279 drop(take(json, (endIndex - 1)), ((startIndex + keyLen) + 3))
282280 }
283281
284282
285283 func deleteByKeyInternal (json,key) = {
286- let $t075627630 = getStartAndEndIndexes(json, key)
287- let keyLen = $t075627630._1
288- let startIndex = $t075627630._2
289- let endIndex = $t075627630._3
284+ let $t075567624 = getStartAndEndIndexes(json, key)
285+ let keyLen = $t075567624._1
286+ let startIndex = $t075567624._2
287+ let endIndex = $t075567624._3
290288 let rowValue = drop(take(json, (endIndex - 1)), ((startIndex + keyLen) + 3))
291289 let jsonList = split(json, ",")
292290 let deletedValue = if (contains(rowValue, "{"))
313311 @Callable(i)
314312 func makeJSONInternal (arrKeys,arrValues,iterationsCount,lastIterationLen,res) = valueOrElse(onlyInternal(i.caller), if ((iterationsCount > 0))
315313 then {
316- let $t089529114 = getPartAndTail(arrKeys)
317- let currentArrPartKeys = $t089529114._1
318- let arrTailKeys = $t089529114._2
319- let $t091239238 = getPartAndTail(arrValues)
320- let currentArrPartValues = $t091239238._1
321- let arrTailValues = $t091239238._2
314+ let $t089469108 = getPartAndTail(arrKeys)
315+ let currentArrPartKeys = $t089469108._1
316+ let arrTailKeys = $t089469108._2
317+ let $t091179232 = getPartAndTail(arrValues)
318+ let currentArrPartValues = $t091179232._1
319+ let arrTailValues = $t091179232._2
322320 let params = prepareParams(currentArrPartKeys, currentArrPartValues, 10)
323321 let newString = iterateMakeJSON(params, res, 10)
324322 let result = invoke(this, "makeJSONInternal", [arrTailKeys, arrTailValues, (iterationsCount - 1), lastIterationLen, newString], nil)
376374
377375 @Callable(i)
378376 func deleteByJSONKey (json,key) = {
379- let $t01353313884 = deleteByKeyInternal(json, key)
380- let deletedValueByKey = $t01353313884._1
381- let newJson = $t01353313884._2
377+ let $t01352713878 = deleteByKeyInternal(json, key)
378+ let deletedValueByKey = $t01352713878._1
379+ let newJson = $t01352713878._2
382380 $Tuple2([StringEntry("deletedValue", deletedValueByKey), StringEntry(kJsonRes, newJson)], $Tuple2(deletedValueByKey, newJson))
383381 }
384382
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let kJsonRes = "jsonRes"
55
66 let quote = toUtf8String(base58'b')
77
88 func makeField (nextValue) = if (false)
99 then (((((quote + nextValue._1) + quote) + ":") + nextValue._2) + ",")
1010 else (((((((quote + nextValue._1) + quote) + ":") + quote) + nextValue._2) + quote) + ",")
1111
1212
1313 func reducerMakeJSON (accum,nextValue) = (accum + makeField(nextValue))
1414
1515
1616 func iterateMakeJSON (params,res,length) = if ((length == 0))
1717 then throw("Empty params")
1818 else if ((length == 1))
1919 then {
2020 let $l = params
2121 let $s = size($l)
2222 let $acc0 = res
2323 func $f0_1 ($a,$i) = if (($i >= $s))
2424 then $a
2525 else reducerMakeJSON($a, $l[$i])
2626
2727 func $f0_2 ($a,$i) = if (($i >= $s))
2828 then $a
2929 else throw("List size exceeds 1")
3030
3131 $f0_2($f0_1($acc0, 0), 1)
3232 }
3333 else if ((length == 2))
3434 then {
3535 let $l = params
3636 let $s = size($l)
3737 let $acc0 = res
3838 func $f0_1 ($a,$i) = if (($i >= $s))
3939 then $a
4040 else reducerMakeJSON($a, $l[$i])
4141
4242 func $f0_2 ($a,$i) = if (($i >= $s))
4343 then $a
4444 else throw("List size exceeds 2")
4545
4646 $f0_2($f0_1($f0_1($acc0, 0), 1), 2)
4747 }
4848 else if ((length == 3))
4949 then {
5050 let $l = params
5151 let $s = size($l)
5252 let $acc0 = res
5353 func $f0_1 ($a,$i) = if (($i >= $s))
5454 then $a
5555 else reducerMakeJSON($a, $l[$i])
5656
5757 func $f0_2 ($a,$i) = if (($i >= $s))
5858 then $a
5959 else throw("List size exceeds 3")
6060
6161 $f0_2($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3)
6262 }
6363 else if ((length == 4))
6464 then {
6565 let $l = params
6666 let $s = size($l)
6767 let $acc0 = res
6868 func $f0_1 ($a,$i) = if (($i >= $s))
6969 then $a
7070 else reducerMakeJSON($a, $l[$i])
7171
7272 func $f0_2 ($a,$i) = if (($i >= $s))
7373 then $a
7474 else throw("List size exceeds 4")
7575
7676 $f0_2($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4)
7777 }
7878 else if ((length == 5))
7979 then {
8080 let $l = params
8181 let $s = size($l)
8282 let $acc0 = res
8383 func $f0_1 ($a,$i) = if (($i >= $s))
8484 then $a
8585 else reducerMakeJSON($a, $l[$i])
8686
8787 func $f0_2 ($a,$i) = if (($i >= $s))
8888 then $a
8989 else throw("List size exceeds 5")
9090
9191 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5)
9292 }
9393 else if ((length == 6))
9494 then {
9595 let $l = params
9696 let $s = size($l)
9797 let $acc0 = res
9898 func $f0_1 ($a,$i) = if (($i >= $s))
9999 then $a
100100 else reducerMakeJSON($a, $l[$i])
101101
102102 func $f0_2 ($a,$i) = if (($i >= $s))
103103 then $a
104104 else throw("List size exceeds 6")
105105
106106 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
107107 }
108108 else if ((length == 7))
109109 then {
110110 let $l = params
111111 let $s = size($l)
112112 let $acc0 = res
113113 func $f0_1 ($a,$i) = if (($i >= $s))
114114 then $a
115115 else reducerMakeJSON($a, $l[$i])
116116
117117 func $f0_2 ($a,$i) = if (($i >= $s))
118118 then $a
119119 else throw("List size exceeds 7")
120120
121121 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7)
122122 }
123123 else if ((length == 8))
124124 then {
125125 let $l = params
126126 let $s = size($l)
127127 let $acc0 = res
128128 func $f0_1 ($a,$i) = if (($i >= $s))
129129 then $a
130130 else reducerMakeJSON($a, $l[$i])
131131
132132 func $f0_2 ($a,$i) = if (($i >= $s))
133133 then $a
134134 else throw("List size exceeds 8")
135135
136136 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8)
137137 }
138138 else if ((length == 9))
139139 then {
140140 let $l = params
141141 let $s = size($l)
142142 let $acc0 = res
143143 func $f0_1 ($a,$i) = if (($i >= $s))
144144 then $a
145145 else reducerMakeJSON($a, $l[$i])
146146
147147 func $f0_2 ($a,$i) = if (($i >= $s))
148148 then $a
149149 else throw("List size exceeds 9")
150150
151151 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9)
152152 }
153153 else if ((length == 10))
154154 then {
155155 let $l = params
156156 let $s = size($l)
157157 let $acc0 = res
158158 func $f0_1 ($a,$i) = if (($i >= $s))
159159 then $a
160160 else reducerMakeJSON($a, $l[$i])
161161
162162 func $f0_2 ($a,$i) = if (($i >= $s))
163163 then $a
164164 else throw("List size exceeds 10")
165165
166166 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
167167 }
168168 else throw("The max number of parameters exceeded")
169169
170170
171171 func getPartAndTail (arr) = {
172172 let el0 = arr[0]
173173 let el1 = arr[1]
174174 let el2 = arr[2]
175175 let el3 = arr[3]
176176 let el4 = arr[4]
177177 let el5 = arr[5]
178178 let el6 = arr[6]
179179 let el7 = arr[7]
180180 let el8 = arr[8]
181181 let el9 = arr[9]
182182 let arr0 = removeByIndex(arr, 0)
183183 let arr1 = removeByIndex(arr0, 0)
184184 let arr2 = removeByIndex(arr1, 0)
185185 let arr3 = removeByIndex(arr2, 0)
186186 let arr4 = removeByIndex(arr3, 0)
187187 let arr5 = removeByIndex(arr4, 0)
188188 let arr6 = removeByIndex(arr5, 0)
189189 let arr7 = removeByIndex(arr6, 0)
190190 let arr8 = removeByIndex(arr7, 0)
191191 let arr9 = removeByIndex(arr8, 0)
192192 $Tuple2([el0, el1, el2, el3, el4, el5, el6, el7, el8, el9], arr9)
193193 }
194194
195195
196196 func onlyInternal (caller) = if ((caller == this))
197197 then unit
198198 else throw("Only internal call")
199199
200200
201201 func prepare_1 (arr,arr2) = [$Tuple2(arr[0], arr2[0])]
202202
203203
204204 func prepare_2 (arr,arr2) = [$Tuple2(arr[0], arr2[0]), $Tuple2(arr[1], arr2[1])]
205205
206206
207207 func prepare_3 (arr,arr2) = [$Tuple2(arr[0], arr2[0]), $Tuple2(arr[1], arr2[1]), $Tuple2(arr[2], arr2[2])]
208208
209209
210210 func prepare_4 (arr,arr2) = [$Tuple2(arr[0], arr2[0]), $Tuple2(arr[1], arr2[1]), $Tuple2(arr[2], arr2[2]), $Tuple2(arr[3], arr2[3])]
211211
212212
213213 func prepare_5 (arr,arr2) = [$Tuple2(arr[0], arr2[0]), $Tuple2(arr[1], arr2[1]), $Tuple2(arr[2], arr2[2]), $Tuple2(arr[3], arr2[3]), $Tuple2(arr[4], arr2[4])]
214214
215215
216216 func prepare_6 (arr,arr2) = [$Tuple2(arr[0], arr2[0]), $Tuple2(arr[1], arr2[1]), $Tuple2(arr[2], arr2[2]), $Tuple2(arr[3], arr2[3]), $Tuple2(arr[4], arr2[4]), $Tuple2(arr[5], arr2[5])]
217217
218218
219219 func prepare_7 (arr,arr2) = [$Tuple2(arr[0], arr2[0]), $Tuple2(arr[1], arr2[1]), $Tuple2(arr[2], arr2[2]), $Tuple2(arr[3], arr2[3]), $Tuple2(arr[4], arr2[4]), $Tuple2(arr[5], arr2[5]), $Tuple2(arr[6], arr2[6])]
220220
221221
222222 func prepare_8 (arr,arr2) = [$Tuple2(arr[0], arr2[0]), $Tuple2(arr[1], arr2[1]), $Tuple2(arr[2], arr2[2]), $Tuple2(arr[3], arr2[3]), $Tuple2(arr[4], arr2[4]), $Tuple2(arr[5], arr2[5]), $Tuple2(arr[6], arr2[6]), $Tuple2(arr[7], arr2[7])]
223223
224224
225225 func prepare_9 (arr,arr2) = [$Tuple2(arr[0], arr2[0]), $Tuple2(arr[1], arr2[1]), $Tuple2(arr[2], arr2[2]), $Tuple2(arr[3], arr2[3]), $Tuple2(arr[4], arr2[4]), $Tuple2(arr[5], arr2[5]), $Tuple2(arr[6], arr2[6]), $Tuple2(arr[7], arr2[7]), $Tuple2(arr[8], arr2[8])]
226226
227227
228228 func prepare_10 (arr,arr2) = [$Tuple2(arr[0], arr2[0]), $Tuple2(arr[1], arr2[1]), $Tuple2(arr[2], arr2[2]), $Tuple2(arr[3], arr2[3]), $Tuple2(arr[4], arr2[4]), $Tuple2(arr[5], arr2[5]), $Tuple2(arr[6], arr2[6]), $Tuple2(arr[7], arr2[7]), $Tuple2(arr[8], arr2[8]), $Tuple2(arr[9], arr2[9])]
229229
230230
231231 func prepareParams (currentArrPartKeys,currentArrPartValues,length) = if ((length == 0))
232232 then throw("Empty params")
233233 else if ((length == 1))
234234 then prepare_1(currentArrPartKeys, currentArrPartValues)
235235 else if ((length == 2))
236236 then prepare_2(currentArrPartKeys, currentArrPartValues)
237237 else if ((length == 3))
238238 then prepare_3(currentArrPartKeys, currentArrPartValues)
239239 else if ((length == 4))
240240 then prepare_4(currentArrPartKeys, currentArrPartValues)
241241 else if ((length == 5))
242242 then prepare_5(currentArrPartKeys, currentArrPartValues)
243243 else if ((length == 6))
244244 then prepare_6(currentArrPartKeys, currentArrPartValues)
245245 else if ((length == 7))
246246 then prepare_7(currentArrPartKeys, currentArrPartValues)
247247 else if ((length == 8))
248248 then prepare_8(currentArrPartKeys, currentArrPartValues)
249249 else if ((length == 9))
250250 then prepare_9(currentArrPartKeys, currentArrPartValues)
251251 else if ((length == 10))
252252 then prepare_10(currentArrPartKeys, currentArrPartValues)
253253 else throw("Max number of parameters exceeded")
254254
255255
256256 func getStartAndEndIndexes (json,key) = {
257257 let keyLen = size(key)
258258 let startIndex = value(indexOf(json, key))
259259 let endIndex = valueOrElse(indexOf(json, ",", startIndex), value(indexOf(json, "}", startIndex)))
260260 $Tuple3(keyLen, startIndex, endIndex)
261261 }
262262
263263
264264 func reducerTakeObject (accum,next) = {
265265 let $t063116360 = accum
266266 let result = $t063116360._1
267267 let leftCount = $t063116360._2
268268 let rightCount = $t063116360._3
269269 let end = $t063116360._4
270- if (!(end))
271- then $Tuple4(((result + next) + "check"), leftCount, rightCount, true)
272- else accum
270+ $Tuple4((result + next), leftCount, rightCount, true)
273271 }
274272
275273
276274 func readByKeyInternal (json,key) = {
277- let $t071757288 = getStartAndEndIndexes(json, key)
278- let keyLen = $t071757288._1
279- let startIndex = $t071757288._2
280- let endIndex = $t071757288._3
275+ let $t071697282 = getStartAndEndIndexes(json, key)
276+ let keyLen = $t071697282._1
277+ let startIndex = $t071697282._2
278+ let endIndex = $t071697282._3
281279 drop(take(json, (endIndex - 1)), ((startIndex + keyLen) + 3))
282280 }
283281
284282
285283 func deleteByKeyInternal (json,key) = {
286- let $t075627630 = getStartAndEndIndexes(json, key)
287- let keyLen = $t075627630._1
288- let startIndex = $t075627630._2
289- let endIndex = $t075627630._3
284+ let $t075567624 = getStartAndEndIndexes(json, key)
285+ let keyLen = $t075567624._1
286+ let startIndex = $t075567624._2
287+ let endIndex = $t075567624._3
290288 let rowValue = drop(take(json, (endIndex - 1)), ((startIndex + keyLen) + 3))
291289 let jsonList = split(json, ",")
292290 let deletedValue = if (contains(rowValue, "{"))
293291 then ( let $l = jsonList
294292 let $s = size($l)
295293 let $acc0 = $Tuple4("", 0, 0, false)
296294 func $f0_1 ($a,$i) = if (($i >= $s))
297295 then $a
298296 else reducerTakeObject($a, $l[$i])
299297
300298 func $f0_2 ($a,$i) = if (($i >= $s))
301299 then $a
302300 else throw("List size exceeds 10")
303301
304302 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10))._1
305303 else rowValue
306304 let newJson = if (((size(json) - endIndex) == 1))
307305 then (take(json, (startIndex - 2)) + drop(json, endIndex))
308306 else (take(json, (startIndex - 1)) + drop(json, (endIndex + 1)))
309307 $Tuple2(deletedValue, newJson)
310308 }
311309
312310
313311 @Callable(i)
314312 func makeJSONInternal (arrKeys,arrValues,iterationsCount,lastIterationLen,res) = valueOrElse(onlyInternal(i.caller), if ((iterationsCount > 0))
315313 then {
316- let $t089529114 = getPartAndTail(arrKeys)
317- let currentArrPartKeys = $t089529114._1
318- let arrTailKeys = $t089529114._2
319- let $t091239238 = getPartAndTail(arrValues)
320- let currentArrPartValues = $t091239238._1
321- let arrTailValues = $t091239238._2
314+ let $t089469108 = getPartAndTail(arrKeys)
315+ let currentArrPartKeys = $t089469108._1
316+ let arrTailKeys = $t089469108._2
317+ let $t091179232 = getPartAndTail(arrValues)
318+ let currentArrPartValues = $t091179232._1
319+ let arrTailValues = $t091179232._2
322320 let params = prepareParams(currentArrPartKeys, currentArrPartValues, 10)
323321 let newString = iterateMakeJSON(params, res, 10)
324322 let result = invoke(this, "makeJSONInternal", [arrTailKeys, arrTailValues, (iterationsCount - 1), lastIterationLen, newString], nil)
325323 if ((result == result))
326324 then $Tuple2(nil, result)
327325 else throw("Strict value is not equal to itself.")
328326 }
329327 else if ((lastIterationLen != 0))
330328 then {
331329 let params = prepareParams(arrKeys, arrValues, lastIterationLen)
332330 let newString = iterateMakeJSON(params, res, lastIterationLen)
333331 $Tuple2(nil, (("{" + dropRight(newString, 1)) + "}"))
334332 }
335333 else $Tuple2(nil, (("{" + dropRight(res, 1)) + "}")))
336334
337335
338336
339337 @Callable(i)
340338 func makeJSON (arrKeys,arrValues) = if ((size(arrKeys) != size(arrValues)))
341339 then throw("ArrayKeys and ArrayValues length must be equal")
342340 else {
343341 let len = size(arrKeys)
344342 let iterationsCount = fraction(1, len, 10)
345343 let lastIterationLen = (len % 10)
346344 let res = invoke(this, "makeJSONInternal", [arrKeys, arrValues, iterationsCount, lastIterationLen, ""], nil)
347345 if ((res == res))
348346 then $Tuple2(nil, res)
349347 else throw("Strict value is not equal to itself.")
350348 }
351349
352350
353351
354352 @Callable(i)
355353 func addToJSON (json,arrKeys,arrValues) = if ((size(arrKeys) != size(arrValues)))
356354 then throw("ArrayKeys and ArrayValues length must be equal")
357355 else {
358356 let len = size(arrKeys)
359357 let iterationsCount = fraction(1, len, 10)
360358 let lastIterationLen = (len % 10)
361359 let res = invoke(this, "makeJSONInternal", [arrKeys, arrValues, iterationsCount, lastIterationLen, (drop(dropRight(json, 1), 1) + ",")], nil)
362360 if ((res == res))
363361 then $Tuple2(nil, res)
364362 else throw("Strict value is not equal to itself.")
365363 }
366364
367365
368366
369367 @Callable(i)
370368 func readByJSONKey (json,key) = {
371369 let valueByKey = readByKeyInternal(json, key)
372370 $Tuple2([StringEntry("valueByKey", valueByKey)], valueByKey)
373371 }
374372
375373
376374
377375 @Callable(i)
378376 func deleteByJSONKey (json,key) = {
379- let $t01353313884 = deleteByKeyInternal(json, key)
380- let deletedValueByKey = $t01353313884._1
381- let newJson = $t01353313884._2
377+ let $t01352713878 = deleteByKeyInternal(json, key)
378+ let deletedValueByKey = $t01352713878._1
379+ let newJson = $t01352713878._2
382380 $Tuple2([StringEntry("deletedValue", deletedValueByKey), StringEntry(kJsonRes, newJson)], $Tuple2(deletedValueByKey, newJson))
383381 }
384382
385383

github/deemru/w8io/026f985 
50.76 ms