switch php to json build