nobody ac628a9427
API: Improve MarshalToJson() in common/reflect/marshal.go (#3655)
* Serialize enum to string in MarshalToJson().

* MarshalToJson() respect json tags.

* Add insertTypeInfo parameter to MarshalToJson().

* Omit empty string in MarshalToJson().

* Serialize PortList to string in MarshalToJson().

---------

Co-authored-by: nobody <nobody@nowhere.mars>
2024-08-08 10:35:46 -04:00
..
2022-01-12 21:51:47 -05:00
2020-12-04 09:36:16 +08:00
2024-07-12 00:20:06 +02:00
2020-11-25 19:01:53 +08:00
2022-01-12 21:51:47 -05:00
2020-11-25 19:01:53 +08:00
2024-06-29 14:32:57 -04:00
2024-06-29 14:32:57 -04:00
2024-06-29 14:32:57 -04:00
2024-07-15 14:04:04 +02:00
2024-06-29 14:32:57 -04:00
2024-06-29 14:32:57 -04:00
2020-11-25 19:01:53 +08:00
2024-07-12 00:20:06 +02:00
2024-06-29 14:32:57 -04:00
2024-07-12 00:20:06 +02:00
2024-07-12 00:20:06 +02:00
2024-06-29 14:32:57 -04:00
2021-12-14 20:15:05 -05:00
2022-05-18 15:29:01 +08:00
2024-06-29 14:32:57 -04:00
2020-12-04 09:36:16 +08:00
2021-10-20 00:57:14 +08:00
2020-12-04 09:36:16 +08:00
2024-06-29 14:32:57 -04:00