Common Message Format module
Methods
-
innerparse(message){Object}
infra/messageCodecs/commonMessageFormat.js, line 50 -
Parses a JSON payload, replacing string values with proper type
Name Type Description message
Object A ReturnMessage
Returns:
Type Description Object parsed message -
innerparseFieldValue(field){boolean|number|Buffer|Array|string}
infra/messageCodecs/commonMessageFormat.js, line 12 -
Returns the interpreted value of the field based on dataType
Name Type Description field
object A payload field { name, value, dataType }
Returns:
Type Description boolean | number | Buffer | Array | string dependent on data type