I am using Alchemy API for named entity extraction. For this, I am using Python library given by alchemy. I am able to get the results in XML, but I am not able to figure out how to get the results in JSON. Running the following code, I could get the entities in XML.
entities = alchemyObj.HTMLGetRankedNamedEntities(htmlFile, htmlFile);
print entities
How to set the output mode to JSON in the above code.