JSON arrays containing double values with zeros in decimal are converted into integers. This causes a serialization issue with the Image Service Remap function.
Strictly observe the type. Always use .xxx to ensure double values are being passed to core raster function. Use unsigned 8-bit as output type of Remap function in raster function template editor.