I inadvertently posted to the old Google groups before I saw the notification of the move here.
I noticed that the embedded Lua ParseJson function converts incoming json integers to floats when creating the output Lua table.
I am using the osimis/orthanc image with Orthanc 1.11.3.
I can get around the problem by explicitly casting the value after conversion to a Lua table with the math.floor() function.
As an aside, I am still in the process of converting my embedded Lua code base to Python in order to use the python plugin. In the current mixed Lua/Python environment, I pass values back to my Lua codes using json objects created in the newer replacement Python codes.
I ran into the ParseJson integer to float conversion issue just recently when I finally needed to send an integer back to the Lua script from the python side.
John.