added getJson method
changed default dataType to text, for this is friendly to users