Move `convert` method into `JSON` class. Fix inaccurate decimal conversion problem.