Feature/json request

I would probably use env() here instead. I think it will handle addimg the http_ as well, but I might be wrong about that.