PureSourceCode ★★★★★ (2) ← Back
9 products ✉ Contact flnk.it
PureSourceCode
PSC.Survey.Shared.Imports.Json

PSC.Survey.Shared.Imports.Json

£19.00
📦 Digital download

JSON Importer for Survey

Load answer sets into a Survey form from JSON. Use this when another system already produces JSON — API responses, webhook payloads, exported files — or when you want the cleanest programmatic integration path.

Features

  • Bidirectional — same Form schema used for serializing a designed survey is used to parse answers into typed ElementValue objects
  • Handles the full element set — strings, ints, lists of typed returns (CheckboxReturn, DropdownListReturn, ImagePickerReturn, MatrixReturn, RadiobuttonReturn), matrix coordinates, slider values
  • Validation against the form schema — unknown keys flagged, required fields checked, type mismatches surfaced with the offending path
  • Polymorphic-aware — uses the same ElementTypeConverter the runtime uses, so any valid runtime JSON is importable
  • Typed JsonImportResult — success / failed counts, per-record errors, parsed values ready to bind

What's included

  • Compiled NuGet package (PSC.Survey.Shared.Imports.Json) targeting netstandard2.1
  • Full README with examples for every element type's JSON shape
  • LICENCE.md (one developer, annual commercial licence, unlimited end users, no redistribution)

Add to your project

dotnet add package PSC.Survey.Shared.Imports.Json
using PSC.Survey.Shared.Imports.Json;

var importer = new JsonImport();
var result = importer.ImportData(jsonText, form);

foreach (var record in result.Records)
    if (record.Success)
        Save(record.Values);

Requirements

  • .NET 6 / 8 / 10 (netstandard2.1)
  • PSC.Survey.Shared (models) — included as a NuGet dependency

Pair with

  • Survey runtime — render the form and submit answers as JSON
  • CSV / Excel importers — same API for tabular formats
£0.00
Powered by flnk.it