mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-22 19:45:49 +00:00
Cleanup some Json::Value methods:
* Rename isArray to isArrayOrNull * Rename isObject to isObjectOrNull * Introduce isArray and isObject * Change as many uses of isArrayorNull to isArray as possible * Change as many uses of isObjectorNull to isObject as possible * Reject null JSON arrays for subscribe and unsubscribe
This commit is contained in:
committed by
Mike Ellery
parent
20defb4844
commit
1a245234f1
@@ -124,7 +124,7 @@ Reader::parse ( const char* beginDoc, const char* endDoc,
|
||||
Token token;
|
||||
skipCommentTokens ( token );
|
||||
|
||||
if ( !root.isArray () && !root.isObject () )
|
||||
if ( !root.isNull() && !root.isArray() && !root.isObject() )
|
||||
{
|
||||
// Set error location to start of doc, ideally should be first token found in doc
|
||||
token.type_ = tokenError;
|
||||
|
||||
Reference in New Issue
Block a user