Send Array as a Json and send it via an ajax request