Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to create an rss feed using JSON? [closed]

I like to know how I could create a rss feed with json because right now I got to create one by following the example of kitchen sink

can you guide me please

like image 655
Sabrina Avatar asked May 04 '11 09:05

Sabrina


People also ask

Can JSON be RSS?

No, RSS is an XML-based format, and JSON is an different language rather than some kind of dialect. RSS readers won't understand JSON.

What is a JSON data feed?

JavaScript Object Notation or JSON is an open-standard file format that uses human-readable text to transmit data objects consisting of attribute-value pairs and array data types. The JSON Data Feed is a representation of your data in this format.

Does RSS use XML?

RSS is a Web content syndication format. Its name is an acronym for Really Simple Syndication. RSS is a dialect of XML. All RSS files must conform to the XML 1.0 specification, as published on the World Wide Web Consortium (W3C) website.


2 Answers

  1. Pick a programming language (I'd go with Perl as I know it and I know the modules that can do this)
  2. Pick a JSON parser (I'd use JSON::Any)
  3. Pick a module that can build an RSS feed (I'd use XML::RSS)
  4. Get an HTTP client if you need it (LWP::Simple will probably do for this)
  5. Write some glue code to stick them together.
like image 84
Quentin Avatar answered Sep 27 '22 22:09

Quentin


as far as i know, rss is always XML. You should parse the Json to a correct RSS structure. check this out: http://www.xn--schler-dya.net/blog/2008/01/26/converting-json-to-xml-and-xml-to-json/

here is how rss should look: http://www.landofcode.com/rss-tutorials/rss-structure.php

like image 39
samuhe Avatar answered Sep 27 '22 22:09

samuhe