Skip to main content
Nintex Community Menu Bar
Knowledge Base

REST Serialize/Deserialize Number Values Change

  • March 10, 2026
  • 0 replies
  • 3 views

Forum|alt.badge.img+1

Topic

When serializing or deserializing a number field for REST service instances, some number values change resulting in incorrect execution when used in other SmartObject methods. This only occurs when the number contains leading zeros. This does not happen for inputs with 8 or 9 in them as these values are invalid for octal numbers. 

Examples: 

00001234 becomes 668

00005551 becomes 2921 


Instructions 

This is expected behavior as numbers containing leading zeros are treated as octal numbers with the REST broker as per JSON.net specification. In order to prevent this behavior, the leading zeros will need to be trimmed off of the input so that they get treated as integers instead. 

e.g. 

Changing 00001234 to 1234 will ensure that the serialize or deserialize output is 1234 instead of 668.