Actually, the DumpJson() call transform some of the parameters automatically into numbers while Orthanc expects only strings.
Check the documentation here, especially the ‘keepStrings’ argument: http://book.orthanc-server.com/users/lua.html#general-purpose-functions
We’ll update the samples to include the keepStrings=true arguments which is actually the expected behavior for most users.