harden JSON parsing for jenkins test