Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6735467
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:00:49+00:00 2026-05-26T11:00:49+00:00

Well I’ve been trying for like 3 hours now. Using lots of apis it

  • 0

Well I’ve been trying for like 3 hours now. Using lots of apis it still doesn’t work.

I’m trying to parse

{
  "id": 8029390,
  "uid": "fdABNhroHsr0",
  "user": {
    "username": "Skrillex",
    "permalink": "skrillex"
  },
  "uri": "/skrillex/cat-rats",
  "duration": 305042,
  "token": "VgA2a",
  "name": "cat-rats",
  "title": "CAT RATS",
  "commentable": true,
  "revealComments": true,
  "commentUri": "/skrillex/cat-rats/comments/",
  "streamUrl": "http://media.soundcloud.com/stream/fdABNhroHsr0?stream_token=VgA2a",
  "waveformUrl": "http://w1.sndcdn.com/fdABNhroHsr0_m.png",
  "propertiesUri": "/skrillex/cat-rats/properties/",
  "statusUri": "/transcodings/fdABNhroHsr0",
  "replacingUid": null,
  "preprocessingReady": null
}

in to an array/list.
Any help?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T11:00:49+00:00Added an answer on May 26, 2026 at 11:00 am

    I’m using Jackson from http://codehaus.org/ and so far it has lived up to all my needs.

    You don’t quite deal with json as raw strings in an arraylist, but rather as POJOs, here’s a quick example with a subset of your json.

    public class JacksonExample {
        public static void main(String[] args) throws JsonParseException, JsonMappingException, IOException {
            String text = "{ \"id\": 8029390, \"user\": { \"username\": \"Skrillex\" } }";
    
            ObjectMapper mapper = new ObjectMapper();
            Pojo pojo = mapper.readValue(text, Pojo.class);
    
            System.out.println(pojo.id);
            System.out.println(pojo.user.username);
        }
    }
    
    class Pojo {
        public String id;
        public User user;
    
        public String getId() { return id; }
        public void setId(String id) { this.id = id; }
    
        public User getUser() { return user; }
        public void setUser(User user) { this.user = user; }
    
        public static class User {
            public String username;
    
            public String getUsername() { return username; }
            public void setUsername(String username) { this.username = username; }
        }
    }
    

    The mapper creates a Pojo object with the values filled in. Then you can use that object for anything you need.

    Here are a couple of links for the Jackson project:

    http://jackson.codehaus.org/

    http://wiki.fasterxml.com/JacksonInFiveMinutes

    The latest all in one JAR is here:

    http://jackson.codehaus.org/1.9.1/jackson-all-1.9.1.jar

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

well I'm trying to create a great playlist of music, only using a sigle
Well the problem is that I was using code like this: new Date().toJSON().slice(0, 10)
Well, I've been programming for VB.NET for a while, and now I am interested
well i have a configuration like this in the components part of my config
Well, i took a break from RoR for studies, now I am back, I
well, I am trying to include a header file in my project, while the
Well, I was trying to fix this program, and I keep getting the errors
Well here is what I'm trying to do. I want to convert a array
Well, I would just like to know is it possible to know the path
Well, I just started to work on server side scripting , I chose PHP,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.