Convert from XML to JSON data format
convert z39query to object-oriented interface