writes json with php, reads it with angular