Post a reply

Write your message and submit

Options

Click in the dark area of the image to send your post.

Go back

Topic review (newest first)

cbourque
2012-11-09 23:10:15

The support for JSON is not very good.  This issue has been open for a long time.

jkrfs
2011-08-09 15:16:39

I created a bug for it. Hopefully someone will see it.

http://jira.talendforge.org/browse/TDI-17083

jkrfs
2011-08-05 15:17:26

So is this something we should request in the bugtracker?

Shong, any help please?

johnlynn
2011-08-01 22:57:07

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.

jkrfs
2011-08-01 19:45:52

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.

johnlynn
2011-07-30 20:32:39

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 :-)

jkrfs
2011-07-29 16:10:34

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!

Board footer

Powered by FluxBB