Skip to content

Add support for single quote JSON ? #79

@oolaru

Description

@oolaru

Hi,

Currently if you try to deserialize a single quote JSON to an anonymous type, it will fail with: Input is not a valid JSON

{'information': {'id': '1','name': 'tariff information','providerId': '112'}}

I use this code:

object myObject;
using (TextReader reader = new StreamReader(FILE_PATH)) {
myObject = NetJSON.NetJSON.Deserialize(reader);
}

Could we add support to be able to customize if we want to use single or double quotes? Or even better - to be smart enough to accept both formats for input?

Thanks!

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions