try the non-deprecated json module first