Hardening/style guide in json parse lib