data_to_json() mustn't check type on anyxml