How to change the existing query of the dashboard with a JSON?

I want to load the query and filter values (avalable as JSON) as the current search. How to do it? Is there any function for that? (Kibana 3)