mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +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;
|
||||
} else if (literal == "nan") {
|
||||
return NAN;
|
||||
} else if (literal == "null") {
|
||||
return nullptr;
|
||||
}
|
||||
throw error("invalid keyword " + literal);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue