Use JSON.stringify in ajax post. for some reason that works.