json nativeobj serialize fix when key is an int