I am having all of users' posts be put into a database. Each post contains the user that posted it, the id, the date, the topic, and the content. I am then doing this to put it into json:

Java Code:
echo json_encode(array('resultPost'=>$result));
here is an example of the result:
Java Code:
{"resultPost":[{"id":"11","user":"test","topic_title":"Inventions","content":"rhis is an invention by test","post_date":"2016-04-05"},{"id":"10","user":"luck3y","topic_title":"Apps","content":"this is an app","post_date":"2016-04-05"}]}
I want to put all of the posts from the database into some type of a view such as a gridview on a scrolling layout or something in order from most recent to last. However, I am having trouble figuring out how to put each individual post in each grid. I want it to look like a social network. All I want to be shown is the content and the user who posted. The other info such as date posted and topic will be used for sorting. I am using android volley to send and get requests.

Here is what I have done so far:
Java Code:
private void getPosts(JSONArray jsonArray){
        //go through items in array
        for(int i = 0; i < jsonArray.length(); i++) {
            try {
                //get json object
                JSONObject json = jsonArray.getJSONObject(i);
 
                //add posts content and user arraylist
                posts.add(json.getString(Config.post_content));

                posts.add(json.getString(Config.post_user));

            } catch (JSONException e) {

            }
        }

        gridView = (GridView) findViewById(R.id.gridView);
        ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,
                android.R.layout.simple_list_item_1, posts);
        gridView.setAdapter(adapter);
    }
Although I am getting an error I think I am on the right track. How can I add the user and the content json object and put them together so I can put them both on the grid? Right now they are both being added to an arraylist. Is there a better way?