Fix coding style and typo

add spaces before keywords
rename singleLevelJSON_t to string_pair_t
fix typo in isValidUnquotedCharacter function name
replace == "" by .empty()