Altinn / Altinn/app-lib-dotnet

Replace Newtonsoft.Json with System.Text.Json

Open
#211 0 comments 0 reactions 0 assignees View on GitHub
kind/chore quality/debt status/triage
Dominant language
C#
Stars
8
Forks
27
Avg merge
1h 21m
Merged PRs (30d)
7

Description

### Description

To avoid unnecessary third party (other than Microsoft) we should move away from Newtonsoft.json and use System.Text.Json from Microsoft instead.

### Additional Information

_No response_

### Tasks

_No response_

### Acceptance Criterias

- [ ] Models are serialized the same way with regards to casing ie. camelCase
- [ ] Any references to Newtonsoft is removed
- [ ] The serialization should relax on the casing when receiving data, ie. be case insensitive. But be strict when sending data, ie. enforce camelCase.

Contributor guide

Open the contributing guide

Research direction

Start by locating every Newtonsoft.Json reference and the model serialization and deserialization entry points in the repository. Compare the resulting behavior for camelCase output and case-insensitive input, then verify that no Newtonsoft references remain.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
backend-api-design
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.