Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Converting PyList to JArray (or PyDict to JObject) will cause exception when existing bool type in python #778

Merged
merged 1 commit into from
Sep 15, 2023

Conversation

Uniplore-X
Copy link
Contributor

fix bug

fix: Convert PyList to JArray (or PyDict to JObject) to solve the problem of True (or False) in python causing conversion failure.

  • eg.
PyObject pyobj; //python dict: {"test": True}
var obj = Newtonsoft.Json.JsonConvert.DeserializeObject(pyobj.ToString(), typeof(JObject));  // cause error: Unexpected character encountered while parsing value: T. Path 'test', line 1, position 9.
  • Optimized the code for the dynamic activities function a bit by the way.

…blem of `True` (or `False`) in python causing conversion failure.

 ```c#
 PyObject pyobj; //python dict: {"test": True}
 var obj = Newtonsoft.Json.JsonConvert.DeserializeObject(pyobj.ToString(), typeof(JObject));  // cause error: Unexpected character encountered while parsing value: T. Path 'test', line 1, position 9.
 ```
@skadefro skadefro merged commit 8f2410a into open-rpa:master Sep 15, 2023
2 checks passed
@skadefro
Copy link
Contributor

uploaded as pre-release at https://github.com/open-rpa/openrpa/releases

@Uniplore-X Uniplore-X deleted the pr-master branch September 19, 2023 06:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants