How to save dashboard as json file

The JSON export feature was introduced in Kibana 4.1