Php Json Javascript Array Of Functions Is Not Allowed Because The Application