Convert from JSON to ::MaybeXS.