WordPressPCL: Cannot deserialize the current JSON object

A new error arose: Cannot deserialize the current JSON object (e.g. {“name”:“value”}) into type ‘System.Collections.Generic.IList`1[System.Object]’ because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly. To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object. Path ‘[0].meta.amp_status’, line 1, position 1447.

_Originally posted by @Marneus77 in https://github.com/wp-net/WordPressPCL/issues/104#issuecomment-373396148_

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 1
  • Comments: 17 (10 by maintainers)

Commits related to this issue

Most upvoted comments

I’ve just published Version 1.6.0-beta1 to nuget, can you test with this package?

Awesome, great to hear!