Ensure json booleans are passed correctly even if they are strings