json string to integer comparison bug fixed