Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi there
I have designed my job like below which shows result as NULL. I am sure my tExtractjsonFields is not configured properly.
Trying to extract Json (as shown below) using URL:
[ { "assignment_id": 1234, "title": "Assignment 1", "points_possible": 10, "due_at": "2012-01-25T22:00:00-07:00", "unlock_at": "2012-01-20T22:00:00-07:00", "muted": false, "min_score": 2, "max_score": 10, "median": 7, "first_quartile": 4, "third_quartile": 8, "module_ids": [ 1, 2 ], "submission": { "submitted_at": "2012-01-22T22:00:00-07:00", "score": 10 } }, { "assignment_id": 1235, "title": "Assignment 2", "points_possible": 15, "due_at": "2012-01-26T22:00:00-07:00", "unlock_at": null, "muted": true, "min_score": 8, "max_score": 8, "median": 8, "first_quartile": 8, "third_quartile": 8, "module_ids": [ 1 ], "submission": { "submitted_at": "2012-01-22T22:00:00-07:00" } } ]
My tExtractJsonFields is configred as below:
Can someone please guide what am I doing wrong?
Thanks
Harshal.
Yes you can if your java component has schema defined to be inserted into db
then simply connect your data flow to db_output component and configure the db_output with same schema and valid
configuration of other values and you are good to go.
Regards
Chandra Kant
hi,
i think tjava cannot provide an output flow to be inserted into db.
you better go for tJavaFlex.
Regards
Chandra Kant
What column are you reading from after your tRestClient? It should be the String column, not the Body column.
Connect your tRestClient to a tJavaFlex and use this code (assuming the row is "row1")....
System.out.println(row1.string);
You should see the JSON from the webservice call printed to the console window now. If not, your tRestClient is not returning anything.
It might help to see a screenshot of your job AND a screenshot of your tRestClient's output schema. Sometimes the output schema can become corrupt
This code....
System.out.println(row1.string);
....was to show you how to use the JSON in the tJavaFlex. I don't want to see the JSON. Was what you posted achieved by using the above code?