Home > Back-end >  JSONObject how to convert this to a json string
JSONObject how to convert this to a json string

Time:01-12

Any which bosses know why is an empty object when the output of this code, the code I was writing in the object method. And this can access to the member variable
Public String toJsonString () {
System. The out. Println (" this, "+ this);
System. The out. Println (JSONObject. ToJSONString (this));
Return JSONObject. ToJSONString (this);
}

CodePudding user response:

Maybe call this method is to create this object is not the member variable assignment

CodePudding user response:

The
reference 1/f, wang zhe matter response:
maybe call this method is to create this object is not the member variable assignment.
I found the problem did not get set method
  • Related