<?php
echo json_encode(
array (
'id' => NULL,
'name' => 'Full survey',
'partnerid' => 1,
'questions' =>
array (
0 =>
array (
'id' => NULL,
'question' => 'What is the answer ?',
'questiontypeid' => 1,
'validtionrules' => 'Validation Rules',
'order' => 1,
'required' => true,
'defaultvalue' =>
array (
0 =>
array (
'id' => NULL,
'questionid' => NULL,
'answer' => 'This is the answer.',
'value' => 'That\'s a value.',
'order' => 1
),
),
'isEditing' => true,
),
1 =>
array (
'id' => NULL,
'question' => 'What is the second answer ?',
'questiontypeid' => 1,
'validtionrules' => 'Yet Another Validation Rules',
'order' => 2,
'required' => false,
'defaultvalue' =>
array (
0 =>
array (
'id' => NULL,
'questionid' => NULL,
'answer' => 'This is the second answer.',
'value' => 'That\'s another value.',
'order' => 1
),
),
'isEditing' => true,
),
),
'access_token' => 'abc',
)
);
preferences:
43.44 ms | 402 KiB | 5 Q