removal of json and php 5.4+ libs