Skip to content

Newtonsoft.Json

reference
1 min readUpdated

Kind: Service

Source: Pams/Logic/Pams.Storage/Pams.Storage.csproj (line 1)

Part of: Pams

NuGet package dependency

Newtonsoft.Json is a NuGet package dependency referenced by Pams.Storage. It provides JSON serialization and deserialization for storage-layer data models, including support for legacy JSON formats.

Diagram

mermaid
sequenceDiagram
    participant Storage as Pams.Storage
    participant Json as Newtonsoft.Json
    participant Data as Stored JSON

    Storage->>Json: Deserialize stored content
    Json->>Data: Read JSON fields
    Data-->>Json: Return JSON data
    Json-->>Storage: Return storage model

Usage

ts
type StorageRecord = {
  id: string;
  metadata: Record<string, unknown>;
};

const payload = '{"id":"record-a","metadata":{"source":"legacy"}}';

const record: StorageRecord = JSON.parse(payload);

console.log(record.metadata.source);

AI Coding Instructions

  • Keep Newtonsoft.Json usage within Pams.Storage serialization and deserialization boundaries.
  • Preserve JSON property names expected by existing stored data and legacy formats.
  • Handle missing, null, or malformed JSON values before mapping them to storage models.
  • Avoid changing serializer settings without checking compatibility with existing persisted records.

Used by

9 references from 9 files. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.

Injected or called by (9)

  • Pams.APIPams/API/Pams.API/Pams.API.csproj:1
  • Pams.API.CorePams/API/Pams.API.Core/Pams.API.Core.csproj:1
  • Pams.CorePams/Core/Pams.Core/Pams.Core.csproj:1
  • Pams.SecurityPams/Core/Pams.Security/Pams.Security.csproj:1
  • HelperToolPams/HelperTool/HelperTool.csproj:1
  • Pams.BusinessPams/Logic/Pams.Business/Pams.Business.csproj:1
  • Pams.CurrencyConverterPams/Logic/Pams.CurrencyConverter/Pams.CurrencyConverter.csproj:1
  • Pams.EmailPams/Logic/Pams.Email/Pams.Email.csproj:1

…and 1 more.

Was this page helpful?

Download as PDF