You are not logged in.
Announcement
Unanswered posts
|
The support for JSON is not very good. This issue has been open for a long time.
I created a bug for it. Hopefully someone will see it.
http://jira.talendforge.org/browse/TDI-17083
So is this something we should request in the bugtracker?
Shong, any help please?
But I think the unique thing about tFileInputJSON was that it has a built-in JSONPath engine, so that you can pull apart the JSON from a REST service or file.
So it's like what you originally said: you need a tFileInputJSON component that can do a POST and not just a GET.
And I could use that too.. I wouldn't need the tREST then.
This is what I am afraid of, having to use two (maybe three?) separate components. I am already using a tJavaFlex to parse my complex json response, so I was hoping to use the tJsonFileInput as the primary component. However, I am ready to replace it with a tHttpRequest component if its possible.
Any help with tHttpRequest would be highly appreciated.
jkrfs, I am strugging with the same issue. I need to do a POST to a RESTful service, and then parse the JSON returned from the service, using JSONPath.
But it looks like tFileInputJSON can only get its JSON from a file (or a URL), so I have to do something like:
1. Use tREST to issue the POST (I need tREST because I need to set headers, etc)
2. Put the resulting JSON output coming from the tREST to file using tFileOutputDelimited -- I had to give the field separator as a blank " ", so as to not mess up the JSON.
3. Then in another job, read the file written from this job, using tFileInputJSON.
It's a shame to have to go to the filesystem -- it'd be nice if there was a tInputJSON or something that could just get the rows from the flow. But I'll create some temp file management with tCreateTemporaryFile and it'll all function very smoothly :-)
I need to make a call and return JSON using the POST method. The tJsonFileInput (or is it tFileJsonInput) works in my project, I am able to hit a URL and get a response in which I decipher. Now I require to be able to hit the same URL but using the POST method. Unfortunately, I don't see the option in the JSON component, but it is in tHttpRequest.
My question is, how can I use tHttpRequest similarly how I already have the tFileJsonInput component? Has anyone done this?
Thanks!