What will be the return type of the execute method?

Your module adds a new controller class which will return a JSON response.

A. You should implement a new API endpoint instead of returning JSON from a controller
B. The string value of Zend_Json::encode()
C. An instance of MagentoFrameworkControllerResultJson
D. No return needed, an object that can be converted to JSON must be set as the Response body

5 1 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x