replaced zf2 json enconder for native php encoder