Need Advice to Working with Custom Post Meta

If it where me id store each question as a ‘question’ type meta as a stored array. WordPress automatically serializes your array before storing it.

So then when you use get_post_meta($post_id, ‘question’) it will return an array of serialized strings.(I think, Im pretty sure it wont unserialize it for you if there are more than 1 results)

Then just run a foreach loop and go through each question

EDITED TO SHOW MORE DETAIL:

say I have a JSON object and I post it into PHP

$myobject = json_decode($_POST['myobject']);
$contents = $myobject->contents;

So looking at your JSON it should look something like this:

//the whole things an array
array(

//these are your question things
array('question' => 'First Question',
      'answers'=> array('First Option', 'Second Option', 'Third Option', 'Fourth Option'),
      'correctAnswer' => 1
),
array('question' => 'First Question',
      'answers'=> array('First Option', 'Second Option', 'Third Option', 'Fourth Option'),
      'correctAnswer' => 1
),
array('question' => 'First Question',
      'answers'=> array('First Option', 'Second Option', 'Third Option', 'Fourth Option'),
      'correctAnswer' => 1
)
//end of the array
);

Now what you can do is store each one of them as meta objects for your post

foreach($contents as $question_array) {
    add_post_meta($post_id, 'question', $question_array);
 }

Then later (like on a page) where you want to show the meta you simply call it and loop through it

$questions = get_post_meta($post_id, 'question', false);//false by default just showing here because we want an array. 
foreach($questions as $question){
    $question_array = maybe_unserialize($question);
    //now we have the question array from earlier and we can do anything like:
    echo "Question: <br>" . $question_array['question'];
    echo "These are possible answers:<br><ul>";
    foreach($question_array['answers'] as $answer) {
        echo "<li>" . $answer . "</li>";
    }
}

You can do anything you want with those arrays in that loop, and it’ll go through them. I’ve never stored a whole object like that, but it should totally be possible. Let me know how it goes.