change json to a runtime gem dependency