Skip to content

Commit 9e93b32

Browse files
committed
Safe JSON get for variables
1 parent b41cdfa commit 9e93b32

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

isc/py/Callout.cls

+1
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ ClassMethod SimpleString(code As %String = "", variable As %String = "", seriali
8989
set:$ZISWIDE(code) code = $zcvt(code, "O", "UTF8")
9090
set result = $ZF(-6, ..#PyLibId, ..#SimpleString, code, variable, serialization)
9191

92+
// Slows getting result by ~50%
9293
set result = $zcvt(result, "I", "UTF8")
9394
quit result
9495
}

isc/py/data/Variable.cls

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ ClassMethod SaveVariable(name As %String = "", Output variable As isc.py.data.Va
4848
set variable.Value = repr
4949
set variable.Type = type
5050
set variable.Pickle = pickle
51-
set variable.JSON = json
51+
set variable.JSON = $g(json)
5252
set sc = variable.%Save()
5353

5454
quit sc

0 commit comments

Comments
 (0)