3 ms·
I have to admit that I once used python repr() as a way to pass json data. It worked. I think.
by jokoon 5y ago
I have to admit that I once used python repr() as a way to pass json data. It worked. I think.
- eptcyka 5y agoI've heard horror stories from a friend who had to fix such code introduced by a contractor. Management didn't want to throw any of it awayz because they paid a lot of money to the contractor. Of course broke in a hard to debug fashion.
- dapids 5y agoIt will work only as long as the object(s) interpreted by repr are serialzable by JSON, which is not a sound approach, unless you write a any-type serializer.