Skip to content

CrossCutting: abstract IJsonSerializer #482

@aahmed-dfe

Description

@aahmed-dfe

Currently we call to different JSON serialiser impl (NewtonSoft, Microsoft.Text..) through static methods.

We should invert this through IOC e.g. IJsonSerialiser so there is consistent usage of a serialiser, which we can extend in the future through options / patterns when unique usecases appear.

There is an existing simple impl in MyPupils where a basic NewtonsoftJsonSerialiser has been written. Register this as a singleton and start applying.

Note v1.8.1 had an issue where establishment users could not login as Auth didn't deserialise (no users)

Metadata

Metadata

Assignees

Labels

cross-cuttingCross cutting library or shared work that affects many features / bounded contexts

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions