NetJSON: When the `value` is null the `SerializeObject` will throw NullReferenceException

Because SerializeObject is merely a wrapper around Serialize, the type information is obtained by calling value.GetType(). This is not how json serializers are typically used. (Perhaps I do not have enough experience.)

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 18 (11 by maintainers)

Most upvoted comments

@Mutuduxf I have published a new package for this fix in 1.4.5 ( https://www.nuget.org/packages/NetJSON/1.4.5 ). Please verify, in the meantime; i will be closing this ticket. Request to reopen again if needed or create a new issue. Thanks

Hi @rpgmaker , it’s all fixed now, thanks for your greate work!

Thanks that helps

Sorry, forget to give the link: https://github.com/AoxeTech/Aoxe.Serialization