removed string check on boolean. proper json should be sent