Why jsonencode with containers.Map doesn't preserve order of key value pairs? If i give input as A:1,B:2,C:3, output is random like C:3,A:1,B:2. Key value pairs are correct, but their order isn't preserved. How to preserve the order as given in input?
MATLAB: Jsonencode with containers.Map doesn’t preserve order of key value pairs
jsonencode
Best Answer