You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 25, 2026. It is now read-only.
privatestaticreadonlyPhpDeserializationOptionsPhpDeserializationOptions=new(){AllowExcessKeys=true};
...// PropertyType is List<MyPhpModel>PhpSerialization.Deserialize(value,propertyType,PhpDeserializationOptions);
Exception
PhpSerializerNET.DeserializationException
HResult=0x80131500
Message=Can not deserialize array at position 0 to list: It has a non-integer key 'name' at element 2 (position 14).
Source=PhpSerializerNET
StackTrace:
at PhpSerializerNET.PhpDeserializer.MakeList(Type targetType, PhpToken& token)
at PhpSerializerNET.PhpDeserializer.DeserializeToken(Type targetType)
at PhpSerializerNET.PhpDeserializer.Deserialize(Type targetType)
at PhpSerializerNET.PhpSerialization.Deserialize(String input, Type type, PhpDeserializationOptions options)
at OPG.WordPressService.Parsing.Attributes.Converters.PhpStringConverter.Convert(String value, Type propertyType, IFormatProvider formatProvider) in C:\Repos\dotnet-api\WordPressService\Parsing\Attributes\Converters\PhpStringConverter.cs:line 24
Hiya just checking v2 out - seems to run into some issues.
Input
Model
Code
Exception
https://www.unserialize.com/s/312e060c-0e1c-db28-c39b-000037672b1b