fixing problem with implicit for user-agent: type not inferred correctly when evaluated within json creation