Fix JSON compatability with MRI