mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 05:21:49 +00:00
add 'null' support to json parser
This commit is contained in:
parent
3b3407aef6
commit
637dfa66c2
1 changed files with 2 additions and 0 deletions
|
|
@ -241,6 +241,8 @@ dv::value Parser::parseValue() {
|
||||||
return INFINITY;
|
return INFINITY;
|
||||||
} else if (literal == "nan") {
|
} else if (literal == "nan") {
|
||||||
return NAN;
|
return NAN;
|
||||||
|
} else if (literal == "null") {
|
||||||
|
return nullptr;
|
||||||
}
|
}
|
||||||
throw error("invalid keyword " + literal);
|
throw error("invalid keyword " + literal);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue