import com.alibaba.fastjson.parser.Feature;
public class DefaultJSONParserTest extends TestCase {
public void test_double() {
DefaultJSONParser parser = new DefaultJSONParser("3.4");
parser.config(Feature.UseBigDecimal, false);
Assert.assertEquals("3.4", parser.getInput());
Assert.assertEquals(false, parser.isEnabled(Feature.UseBigDecimal));
Object result = parser.parse();
Assert.assertEquals(3.4D, result);
}