N
N
Nikolai2020-03-24 17:42:10
Java
Nikolai, 2020-03-24 17:42:10

Is it possible to convert RSS to JSON? Are there other options?

Hello. There is a site of free announcements having RSS. There is also an application for android on WebView. Is it possible to somehow convert RSS to JSON to get a more adequate application? If so, where is it better to convert - in the application or on the server? I think it will be expensive to convert on the server in terms of resources, but on the phone ... I don’t even know. Or maybe RSS itself can be used instead of JSON? Will this method work on an iPhone? Thanks in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Karbivnichy, 2020-03-24
@niknik_ykt

Not a very clear question. Do you want to create your own application on android, and display data from the ad site there? If you know how to work with json, then there should be no issues with rss(xml). You can convert it like this (did not check):

JSONObject jObject = XML.toJSONObject("ваш xml");
String json = jObject.toString();

I think it will be expensive to convert on the server in terms of resources
- on what resources - financial. You can take VPS for $1, and this is not a burden for him at all (in the literal sense of the word).
I would take a cheap VPS for my application, get xml from the site and convert it to json, and in the application I would already receive information from my server. If the site changes the rss format, it would make changes on its server, otherwise it will be necessary to make changes in the application, and all users to update it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question