Sept. 15, 2020
3:11 p.m.
On Tue, 15 Sep 2020 at 18:10, Wes Turner <wes.turner@gmail.com> wrote:
json.loads and json.dumps exist only because there was no way to distinguish between a string containing JSON and a file path string. (They probably should've been .loadstr and .dumpstr, but it's too late for that now)
Well, if you see the code of msutils.jsonLoad I linked before, it does a simple try. Not very elegant, but effective.