Ensure JSON values are logged correctly