diff options
author | drh <> | 2023-04-24 23:14:34 +0000 |
---|---|---|
committer | drh <> | 2023-04-24 23:14:34 +0000 |
commit | be5bada4d039adbd7608cb087dbdad948374548c (patch) | |
tree | 41dfd6f7c32d830a88fa6c6ab38be2c272b88ed1 /src | |
parent | 7eff609d8a87c61eed915c6a43ef58dc023b000a (diff) | |
download | sqlite-be5bada4d039adbd7608cb087dbdad948374548c.tar.gz sqlite-be5bada4d039adbd7608cb087dbdad948374548c.zip |
Allow trailing commas in objects and arrays of JSON.
FossilOrigin-Name: 4031b231c223db598b45dbd192b027a99a9b82a981d43c75f723a3fb06720b82
Diffstat (limited to 'src')
-rw-r--r-- | src/json.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/json.c b/src/json.c index aa8bf64c8..4c68608de 100644 --- a/src/json.c +++ b/src/json.c @@ -804,7 +804,7 @@ static int jsonParseValue(JsonParse *pParse, u32 i){ x = jsonParseValue(pParse, j); if( x<0 ){ pParse->iDepth--; - if( x==(-2) && pParse->nNode==(u32)iThis+1 ) return j+1; + if( x==(-2) ) break; return -1; } if( pParse->oom ) return -1; @@ -838,7 +838,7 @@ static int jsonParseValue(JsonParse *pParse, u32 i){ x = jsonParseValue(pParse, j); pParse->iDepth--; if( x<0 ){ - if( x==(-3) && pParse->nNode==(u32)iThis+1 ) return j+1; + if( x==(-3) ) break; return -1; } j = x; |