Home > Back-end >  Json returns the format problem
Json returns the format problem

Time:09-26



Figure in json null value is how to do it? Where changes can return the null values
Didn't pay attention to the format of null or an empty string, now need the null values, how to get into the one above? Need to pay attention to what?

CodePudding user response:

You don't assign the default is null,,,,,,,

CodePudding user response:

Complement good interface definition, database value is empty, the interface is the default value of the string? What is the default value of numerical

The default value or supplement the database field directly

CodePudding user response:

With framework of guns, guns to return json processing the framework? How should remove to json processing?

CodePudding user response:

The
refer to the original poster Java engineer time response:


Figure in json null value is how to do it? Where changes can return the null values
Didn't pay attention to the format of null or an empty string, now need the null values, how to get into the one above? Need to pay attention to what?


With framework of guns, guns to return json processing the framework? How should remove to json processing?

CodePudding user response:

Assignment not to go, if you enclose a JSON tools will have to write a method, the default JSON utility class conversion you incoming objects have no assignment to the front end is null
  • Related