Fix json module and variable name conflict