File tree Expand file tree Collapse file tree
user_guide_src/source/incoming Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -149,18 +149,18 @@ data that you want or you can use "dot" notation to dig into the JSON to get dat
149149
150150::
151151
152- //With a request body of:
152+ // With a request body of:
153153 {
154154 "foo": "bar",
155155 "fizz": {
156156 "buzz": "baz"
157157 }
158158 }
159159 $data = $request->getVar('foo');
160- //$data = "bar"
160+ // $data = "bar"
161161
162162 $data = $request->getVar('fizz.buzz');
163- //$data = "baz"
163+ // $data = "baz"
164164
165165
166166If you want the result to be an associative array instead of an object, you can use ``getJsonVar() `` instead and pass
@@ -169,12 +169,12 @@ correct ``CONTENT_TYPE`` header.
169169
170170::
171171
172- //With the same request as above
172+ // With the same request as above
173173 $data = $request->getJsonVar('fizz');
174- //$data->buzz = "baz"
174+ // $data->buzz = "baz"
175175
176176 $data = $request->getJsonVar('fizz', true);
177- //$data = ["buzz" => "baz"]
177+ // $data = ["buzz" => "baz"]
178178
179179.. note :: See the documentation for ``dot_array_search()`` in the ``Array`` helper for more information on "dot" notation.
180180
You can’t perform that action at this time.
0 commit comments