Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I'm thinking about starting an open source JSON parser library in Java for fun and coding practice. Would this be useful for people? Would this have more adoption than an XML parser?
There has always been a fair amount of backlash against XML, but this has really heated up since JSON became popular. A lot of people want to throw XML out the window and use JSON for everything, and for many problems, this is a reasonable thing to do. JSON and XML have many similar properties, but XML has some tricks up its sleeve that JSON can't yet match. you can find more useful answer in the below JSON and XML comparison and https://stackoverflow.com/questions/3536893/what-are-the-pros-and-cons-of-xml-and-json
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 4 years ago.
Improve this question
I'm quite new in android development. I have an app and I'm going with retrofit for the network requests. to handle the response there are some good libraries that I found such as gson , jackson , moshi and som much more. I'm abit confused and I can't decide what I should go with in this particular case. Any help is appreciated.m
Probably a duplicate question. But since you're new to Android development this article will explain everything to you.
https://blog.takipi.com/the-ultimate-json-library-json-simple-vs-gson-vs-jackson-vs-json/
In short , if your json response is quite small, go with gson otherwise Jackson is better.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I'm currently developing a small application for my parents' restaurant. The restaurant has a webpage where the clients have a private zone where they can see the status of their account after they log in.
Let's assume I log in succesfully and now I can see that private HTML after login. There, i'd like to parse some data.
My question is, I think, quite simple. I know I can use JSOUP for this task but I can also manage to do it by using Strings and Substrings.
Which method is best and why? I've looking for a while and I can't decide which to use.
Thanks in advance,
Alex
Jsoup is a better method, it is a library built for html parsing.
Using strings and substrings can be very error prone and lead you to writing a lot of code for something an html parsing library can already do easily.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I am trying to scrape data from two websites. I want to build a generic web parser to scrape those website. I need a generic parser because i might need to parse additional websites in the future. I want to parse the websites using java and store specific data in MySQL. What are the steps I should take? Can anyone guide me in this?
I've done this same thing for scraping the web using java and building a parser is an absolute nightmare, there are so many more things to consider that you realize at the start.
Use jSoup. It is sooo easy, and leaves you time to enjoy the finer things in life.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I am working on Text Processing Project. Where I need to do many operaition on text provided to me. Like finding substring in the text (Using Regex), deleting garbage text (Using Exact or Regex match), Splitting Text into multiple parts. Currently I am using Java for this purpose. Just want to understand is Java most suitable language for such things or I should use some other language.
It's opinion based, but I'd say one language is as good as another for this. There are some great java libraries for text parsing. I've been using the Guava Joiner, Splitter and Charmatcher classes a lot recently for similar things. https://code.google.com/p/guava-libraries/
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I have tried ProGuard many times and spent a lot of time on configuring it to no avail in the past year or so. It seems to have some inherent limitations related to pre-compiled third-party libraries as explained in its document. ProGuard document nicely provides a long list of alternatives. Instead of trying them one by one, I am here to see if any could share successful experiences with some of them. I only need something to obfuscate java code. Code shrinking and optimization are nice to have, but not required.