How to pass a JSON object from C# to Python? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to pass a JSON object from C# to Python?

Hello I want to create a program with C# and Python. I collect some data with C# and then I process it with Python. I want to pass that data in a JSON object. How should I do???

4th Sep 2021, 3:05 PM
Tomás Atrat
1 Answer
+ 1
Maybe this could help: https://www.codeproject.com/Articles/657698/JUMP_LINK__&&__Python__&&__JUMP_LINK-Visual-Studio-and-Csharp-So-Sweet My idea would be, if its with a c# and a python file, to write it from the c# file in a JSON file and the read the JSON file in the python file. I know you can use the json module in python to convert a json object to a python object. I hope I was able to help.
5th Sep 2021, 5:46 PM
Strable
Strable - avatar