Try our conversational search powered by Generative AI!

Hashtable serialization always changes keys to camel cases

Found in

EPiServer.Commerce 10.2.0

Fixed in

EPiServer.Commerce 10.4.0

(Or a related package)

Created

Mar 03, 2017

Updated

Mar 07, 2017

Area

Core

State

Closed, Fixed and tested


Description

The json serializer was setup with CamelCasePropertyNamesContractResolver. When serializing hashtables, the keys of hashtable are converted to camel cases, so it leads to a missmatch key issue.

Customers are experiencing this problem: http://world.episerver.com/forum/developer-forum/Episerver-Commerce/Thread-Container/2017/3/custom-properties-on-line-items-are-not-saved-to-purchaseorder-when-using-serializablecart/