omegastripes / VBA-JSON-parser

Backus-Naur Form JSON Parser based on RegEx for VBA
GNU General Public License v3.0
107 stars 44 forks source link

Error detecting structure in JSON.Parse #3

Closed dw3phCnR closed 6 years ago

dw3phCnR commented 6 years ago

I'm getting error in: JSON.Parse sJSONString, vJSON, sState

vJSON is coming Null from this JSON. I checked Sub Parse and it appears that it does not recognize the structure. When I write Tab characters it works. Does not works image

Works image

Please, be notified that is the same data!

omegastripes commented 6 years ago

@dw3phCnR That is due to wrong pattern modification in the last commit:

  1. Fixed regex pattern for unnecessary spaces removing: "\s{2,}"

The pattern should be changed back to "\s+" to solve the problem. I will do a new commit to fix the issue.

dw3phCnR commented 6 years ago

Thank you. It works!!