First modernisation update of the json2solr script.