During my research into how to better interface websocket interface I was developing for JUCI project I developed this small server that was designed to accept JSON requests through a normal socket and then pass them to the ubus server. It was since replaced by JUCID which provides a much more robust and secure way to achive the same effect.
I do not plan to develop this project further any time soon so it serves as a mere code example.