Update output.php

Changed Request from XML to JSON format