Copy text.php to json.php, update to match