File tree Expand file tree Collapse file tree 1 file changed +19
-7
lines changed Expand file tree Collapse file tree 1 file changed +19
-7
lines changed Original file line number Diff line number Diff line change 1010 'array ' => [
1111 # Please define an object instead of item
1212 # so each array needs to be defined with a key name, for example, 'message' is a key name
13- 'message ' => [
14- 'author ' => [
13+ 'post ' => [
14+ 'author ' => ( object ) [
1515 'first_name ' => '' ,
1616 'last_name ' => '' ,
1717 ],
18- 'text ' => '' ,
19- 'date ' => '2019-01-01 '
18+ 'comment ' => (object )[
19+ 'user ' => (object )[
20+ 'first_name ' => '' ,
21+ 'last_name ' => ''
22+ ],
23+ 'content ' => ''
24+ ],
25+ 'followers ' => (array )[
26+ 'id ' => '' ,
27+ 'follower_user ' => [
28+ 'first_name ' => '' ,
29+ 'last_name ' => ''
30+ ]
31+ ],
32+ 'text ' => '' ,
33+ 'date ' => '2019-01-01 '
2034 ]
2135 ],
22- # Remember to define an object with a key name
23- 'json ' => "{} "
24- ];
36+ ];
You can’t perform that action at this time.
0 commit comments