Use .to_hash instead of .to_h for greater compatability