| 835 | } |
| 836 | |
| 837 | bool Json::canConvert(Type t) const { |
| 838 | if (type() == t) |
| 839 | return true; |
| 840 | |
| 841 | if (t == Type::Null) |
| 842 | return true; |
| 843 | |
| 844 | if ((type() == Type::Float || type() == Type::Int) && (t == Type::Float || t == Type::Int)) |
| 845 | return true; |
| 846 | |
| 847 | return false; |
| 848 | } |
| 849 | |
| 850 | bool Json::isNull() const { |
| 851 | return type() == Type::Null; |
no test coverage detected