fix for gcc 4.3.3
fixed a bug in the regex for json parsing