The generated JSON-string converted the enum to an Integer:
Input code:
PatchOperation[] patches = new PatchOperation[1];
patches[0] = new PatchOperation()
{
op = Op.replace,
path = "/attributes/gpsr_safety_attestation",
value = new object[] { true }
};
Although the parameters are given as an Enum, Amazon expects them as string (see Amazon Listings Items):
The generated JSON-string converted the enum to an Integer:
Input code:
before: {"productType":"BRA","patches":[{"op":1,"path":"/attributes/gpsr_safety_attestation","value":[true]}]}
after: {"productType":"BRA","patches":[{"op":"replace","path":"/attributes/gpsr_safety_attestation","value":[true]}]}