Project

General

Profile

« Previous | Next » 

Revision 61017

Added by Andreas Czerniak almost 3 years ago

correct replace str in json

View differences:

modules/dnet-collector-plugins/trunk/src/main/java/eu/dnetlib/data/collector/plugins/utils/JsonUtils.java
69 69

  
70 70
        // replace '@' in JSON Keynames with 'oat_'
71 71
        while (jsonInput.matches(".*\"@([^\"]*)\":.*")) {
72
            jsonInput = jsonInput.replaceAll("\"@([^\"]*)\":", "\"oat_$1\"");
72
            jsonInput = jsonInput.replaceAll("\"@([^\"]*)\":", "\"oat_$1\":");
73 73
        }
74 74
        log.trace("after syntaxConvertJsonKeyNames: " + jsonInput);
75 75
        return jsonInput;
modules/dnet-collector-plugins/trunk/pom.xml
7 7
	</parent>
8 8
	<groupId>eu.dnetlib</groupId>
9 9
	<artifactId>dnet-collector-plugins</artifactId>
10
	<version>1.5.12-SNAPSHOT</version>
10
	<version>1.5.13-SNAPSHOT</version>
11 11
	<scm>
12 12
		<developerConnection>scm:svn:https://svn.driver.research-infrastructures.eu/driver/dnet45/modules/dnet-collector-plugins/trunk</developerConnection>
13 13
	</scm>

Also available in: Unified diff