I am working on ASP.NET WebAPI Web Services and one of my requirement is to call a python script that outputs a JSON object and send it as web service response.
I have Installed IronPython 2.7.9 nuget package and my computer has Python 3.6
I addded IronPython nuget package in my project and tried the code from link https://gist.github.com/0x49D1/23196eb99b4c1f089b2033b6191e84e8
test.py
import json
data = {}
data['1'] = 'value1'
data['2'] = 'value2'
json_data = json.dumps(data)
print (json_data)
Exception IronPython.Runtime.Exceptions.ImportException {"No module named json"}