Xray-core/common/reflect
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
..
marshal_test.go API: Improve MarshalToJson() in common/reflect/marshal.go (#3655) 2024-08-08 10:35:46 -04:00
marshal.go API: Improve MarshalToJson() in common/reflect/marshal.go (#3655) 2024-08-08 10:35:46 -04:00