Fix operator precedence; fix parens
Use correct (older) version of JSON library in project