views:

128

answers:

1

I have a txt file on the web, that is contructed like this:

"key1 value1
 key2 value2
 key3 value3
..."

Can I using Yahoo! Pipes parse it to JSON? The end format should be like:

{key1 : value1, 
 key2 : value2, 
 key3 : value3, 
 ...}

Any hint is welcome :)

+1  A: 

Yes you can. Use Fetch CSV with space as separator, feed it through a Loop with String Builder to insert the colons and commas, then another String Builder to insert the braces. But beware of the last comma!

Anyway that's the general idea to get you started...

Mauricio Scheffer