Updated "enter" api method to handle JSON response instead of XML.

Enter API was broken after JSON ouput. It is now fixed.