added log on json parser
This commit is contained in:
parent
eb61aebcd5
commit
b29b4e1fd7
|
@ -101,7 +101,6 @@ public class RunSPARQLQueryService {
|
||||||
parser.setCollection(true);
|
parser.setCollection(true);
|
||||||
}
|
}
|
||||||
String bufferedRecord = recordWriter.toString();
|
String bufferedRecord = recordWriter.toString();
|
||||||
log.debug("before json parser :: "+bufferedRecord);
|
|
||||||
int size = parser.parse(bufferedRecord);
|
int size = parser.parse(bufferedRecord);
|
||||||
log.debug("json elements: "+size);
|
log.debug("json elements: "+size);
|
||||||
if (size==-1) {
|
if (size==-1) {
|
||||||
|
|
|
@ -55,6 +55,8 @@ public class ParseRDFJSON {
|
||||||
setJson(json);
|
setJson(json);
|
||||||
fillMap();
|
fillMap();
|
||||||
DocumentContext jsonContext = JsonPath.parse(json);
|
DocumentContext jsonContext = JsonPath.parse(json);
|
||||||
|
log.debug("jsonPath: "+getCatalogEntryJsonPath());
|
||||||
|
log.debug("json from jsonContext: "+json);
|
||||||
JSONArray entries = jsonContext.read(getCatalogEntryJsonPath());
|
JSONArray entries = jsonContext.read(getCatalogEntryJsonPath());
|
||||||
int size = entries.size();
|
int size = entries.size();
|
||||||
if (size==0) {
|
if (size==0) {
|
||||||
|
|
Loading…
Reference in New Issue