Updated parameter name to match others
Added constant for JSON printing when not in DEBUG
Fixed issue where protocol objects are not deserialised
Corrected comment
Fixed issues when parsing and formatting decimal numbers
Updated tests