Open budoray opened 6 years ago
Hello,
I solved this issue converting the response XmlRpcResponse to a List<Dictionary<string,object>> List because Odoo could response a list and Dictionary for property value set.
With a bit of Refection and kept in mind the list of object could be only:
Happy coding!
It would be really helpful if XmpRpcResponse.GetString() would return as valid json. The namespace / class name is used when values are of type Dictionary<string, object> in ObjectToString(object value) and the temp.Value is a List
Perhaps a new method GetJson() would be a great enhancement?
My XmlRpcResponse.GetString() returns the following:
[{"problems": "System.Collections.Generic.List
1[System.Object]", "id": "3434", "name": "Engine / Exhaust System"}]`Another workaround, for me, would be to modify the foreach loop in the ObjectToString method to test if the temp.Value is List