(Bug 4899) Convert to JSON::true/false

Don't use string "true/false" which is what we had to do before. Instead, use 
the proper datatypes and let the JSON module handle it for us.