I'm trying to get data from github with this talend job,
But i couldn't get the data, because it is showing some error.
A JSONObject text must begin with '{' at character 1 of <?xml version="1.0" encoding="UTF-8"?>
<root><root><id>75978949</id><name>Samplerepository</name>
how can i resolve this issue?
This is my output value, when i tested the URL with browser;
[
{
"id": 59002981,
"name": "awesome-ciandcd",
"full_name": "sample/awesome-ciandcd",
"owner": {
"login": "sample",
"id": 354018,
"avatar_url": "https://avatars1.githubusercontent.com/u/354018?v=4"
},
"private": false,
"html_url": "https://github.com/sample/awesome-ciandcd",
"description": "continuous integration and continuous delivery",
"fork": true,
"mirror_url": null,
"open_issues_count": 0,
"forks": 0,
"open_issues": 0,
"watchers": 2,
"default_branch": "master"
}
]
I have modified the job like, tRESTClient --> tFileOutputJSON and stored value like below,
[{"string":null,"body":
<?xml version="1.0" encoding="UTF-8"?>
<root>
<root>
<id>59002981</id>
<name>awesome-ciandcd</name>
<full_name>sample/awesome-ciandcd</full_name>
<owner>
<login>sample</login>
<id>354018</id>
</owner>
<private>false</private>
<fork>true</fork>
<forks_count>0</forks_count>
<default_branch>master</default_branch>
</root>
<root>
<id>35035177</id>
<name>yell-adapters-gelf</name>
<full_name>sample/yell-adapters-gelf</full_name>
<owner>
<login>sample</login>
<id>354018</id>
</owner>
<private>false</private>
<forks>0</forks>
<open_issues>0</open_issues>
<watchers>0</watchers>
<default_branch>master</default_branch>
</root>
</root>,"statusCode":200}]
After that, created a job, tFileInputJSON --> tExtractJSONFileds --> tLogRow , but it is throwing error is: fail to parse the json file : C:/Desktop/Output.json
How to handle this issue?