Pass a Python dict to a Java map possibly with JSON? -


i calling java file within python code. currently, passing several parameters java sees in string[] args array. prefer pass 1 parameter python dictionary (dict) java can understand , make map. know have pass python dictionary string.

how can this? should use json?

you pass json, , parse info out of json in java.

if data more simple, make every other string in java's string[] args parameter represent key or value, , have code loop through , add them map.


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -