> PHP300Framework2x接口化操作,自2.1版本起,我们可以在输出各种json或调试信息的时候,不需要自己去json_encode数组或对象,只需要`return`的内容是一个数组或对象,框架都会自动处理json编码 > ```php return ['code' => 100 , 'msg' => 'login success' , 'data' => [ 'username' => '张三', 'age' => 25, 'gender' => '男' ]]; ``` 输出: `{"code":100,"msg":"login success","data":{"username":"\u5f20\u4e09","age":25,"gender":"\u7537"}}`