# my-cpp-json-parser **Repository Path**: isanth/my-cpp-json-parser ## Basic Information - **Project Name**: my-cpp-json-parser - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-05-18 - **Last Updated**: 2021-05-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README JSON格式总览: ```json { "title": "my cpp json parser", "subtitle": "my cpp json parser", "author": [ "Erich Gamma", "Richard Helm", "Ralph Johnson", "John Vlissides" ], "year": 2021, "weight": 100, "hardcover": true, "publisher": { "Company": "Pearson Education", "Country": "China" }, "website": null } ``` # Part 1:null false true 语法: ```json JSON-text = ws value ws ws = *(%x20 / %x09 / %x0A / %x0D) value = null / false / true null = "null" false = "false" true = "true" ``` “*”表示:重复0次,1次,2次,或多次 # Part 2:number 语法: ```json number = [ "-" ] int [ frac ] [ exp ] int = "0" / digit1-9 *digit frac = "." 1*digit exp = ("e" / "E") ["-" / "+"] 1*digit ``` 完成这部分后,value的语法变成了:value = null / false / true / number