Fixed #20560 - NameError prevents builtin json library from being used