Added Request::toArray() method, toString() now return json encoded result of toArray()