You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems like SimpleJson didn't recognise the Dictionary and treated it as an IEnumerable<KeyValuePair<string, Profile>> instead, serializing its properties "Key" and "Value".
The problem lies in line 1015 in the method SimpleJson.SerializeValue:
IDictionary<string, object> dict = value as IDictionary<string, object>;
That won't find dictionaries of any other value type than object, which is a useless type because you can't do anything with it. In my case, that's Profile instead of object.
The text was updated successfully, but these errors were encountered:
Deserialize this JSON
into this class
and you get a dictionary with one key of "production" and its value containing "localhost" and "root".
Serialize it back to JSON and (after some formatting, see #79) you get
Seems like SimpleJson didn't recognise the Dictionary and treated it as an
IEnumerable<KeyValuePair<string, Profile>>
instead, serializing its properties "Key" and "Value".The problem lies in line 1015 in the method SimpleJson.SerializeValue:
That won't find dictionaries of any other value type than
object
, which is a useless type because you can't do anything with it. In my case, that'sProfile
instead ofobject
.The text was updated successfully, but these errors were encountered: