update .json and .php format