Bangkok has the best street food of any city in the world. Its famous for it.
Having lived there several times, I can attest to that, but, you need to be sure you know where you are getting it from.
If you go to the wrong area then of course you can have a bad experience. But by and large, the best food in one of the world's most famous foodie nations can be found on the streets of its capital.