Update json.php

By default set mime type application/json and change it to text/plain only in a specific situation