Can we add our own JSON format query and use it in Kibana?

I think you're asking the same question as JSON query in Kibana 4.