使用 Jil 處理 JSON 時,如果要在序列化時忽略處理某特定屬性,可在其屬性加上 IgnoreDataMemberAttribute,像是下面這樣:
1 | using System; |
或是帶上 JilDirectiveAttribute,指定 Ignore:
1 | using System; |

如果要客製輸出的 Element 名稱,則直接透過 JilDirectiveAttribute 帶入指定的名稱:
1 | using System; |

謙卑學習,持之以恆,才能不斷的Level Up
使用 Jil 處理 JSON 時,如果要在序列化時忽略處理某特定屬性,可在其屬性加上 IgnoreDataMemberAttribute,像是下面這樣:
1 | using System; |
或是帶上 JilDirectiveAttribute,指定 Ignore:
1 | using System; |
如果要客製輸出的 Element 名稱,則直接透過 JilDirectiveAttribute 帶入指定的名稱:
1 | using System; |