You don't want to know what OS Sabre (backend for 30% of world's airlines) is using on their mainframes.
They had json apis. Each one had some variation on parsing http from a raw tcp connection with IBM RPG. I had to do some unspeakable things to a ruby library so I could control the order of the headers.