The YQL module and JSON output

YQL has certain problems with JSON output, and these problems can be reflected in the output of the YQL module in Pipes (which uses the YQL JSON output). These problems can sometimes be avoided by using a YQL query via a Fetch Data module.

Here’s an example pipe that show the difference.

 

Here are some details of the first item obtained using the Fetch Data module.

 

What we get using the YQL module is

As you can see, we have lost the content from the "content" element.

We can see that this is not an issue with Pipes by looking at a comparison between the XML and JSON output in the YQL console.

The XML output gives us

while the JSON output gives us

 

My preference is to go with the Fetch Data module from the beginning.

Update: The issue for this feed has now been fixed. I’m still staying with my preferred approach

About these ads

Tags:

One Response to “The YQL module and JSON output”

  1. Mikke Says:

    Hi Paul, I’m sorry to disturb you here on your blog. But I believe you’re the only one that can help me right now. I can’t seem to post a new thread on the yahoo pipes board (always network error). My message won’t go through.

    I have a pipe for a list badge. I use this to display posts from a website. It displays item thumbnail images, titles, andpost snippets.

    PROBLEM: I don’t know how make those thumbnails clickable – I want them to link to their respective posts.

    Here’s my list pipe: http://pipes.yahoo.com/pipes/pipe.edit?_id=1a6640e2a78b2c6e736f2220529daae5

    I’m new to pipes, and I don’t know what module/s to add. or how.

    Please help me. Any help would be greatly appreciated. Thank you.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.

%d bloggers like this: