I have a txt file on the web, that is constructed 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, ...}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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…