Attempt to fix json binding on older versions of ruby.