Task::Kensho recommends JSON::MaybeXS.
In reply to Re: Converting hash into js object properties by haukex in thread Converting hash into js object properties by nysus