(#23422) Don't install ruby-json for PE

The packaging for PE already includes JSON, so that was unnecessary to
install to the system Ruby as well in those cases.