I have a toolbox with python script which creates a shapefile from JSON txt file, but it does not show the generated shapefile in arcmap, i have to add it from the output location. What code shall I use to display this shapefile once it is created. Also where do I write the code here in stackexchange?
There is a direct answer to your question on this link at StackOverflow:
It is copied below with some modifications for clarity:
Credit to @Tom-W for the answer.