Minimize server code, let it return a PHP object for further parsing