545 {
548 {
550 }
552 {
554 }
556 {
558 }
560 {
562
563 if (str == "true")
564 {
565 return Json(true);
566 }
567 else if (str == "false")
568 {
569 return Json(false);
570 }
571 else if (str.find(".") != std::string::npos || !str.empty() && str.back() == 'f')
572 {
573 if (!str.empty() && str.back() == 'f') {
574 str.pop_back();
575 }
576
577 return Json(std::stof(str));
578 }
580 {
581 return Json(std::stoi(str));
582 }
583
584 return Json{};
585 }
586 else
587 {
588
589 return Json{};
590 }
591 }
bool isNumber(const std::string &str)
Definition Json.hpp:533
std::string ParseNotString()
Definition Json.hpp:522