Schema-Inspector is a powerful tool to sanitize and validate JS objects.