Skip to content

A value containg text and some datetime will break the deserialization #85

@oolaru

Description

@oolaru

Hi,

There is an issue at deserialization when a text contains some datetime information:

This is the code I am referring to:
At line 30 https://github.com/rpgmaker/NetJSON/blob/master/NetJSON/AutomaticTypeConverter.cs#L30 parser matches DateTime string inside of any string and then tries to parse that at line #50.

Below is an example of JSON which can't be deserialized. Exception will be thrown:
{
“IAmString”: “And I have data time in me: 2015-11-05T12:34:12. So I will crush inside of NetJSON library.”
}

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions