added json encode in other php files