For toJValue, there are nothing that really does it while simplifying code.