Skip to content

ktsu.Semantics.StrongString writes as a string array #152

@Damon3000s

Description

@Damon3000s

When writing a ktsu.Semantics.StrongString variable it will write as a char array and not a string

The code I used to test/confirm:

internal sealed class TestAppData : AppData<TestAppData>
{
	public string Data { get; set; } = string.Empty;
	public AbsoluteDirectoryPath Path { get; } = "C:\\temp".As<AbsoluteDirectoryPath>();
}

The output I got:

{
  "$id": "1",
  "Data": "Data for file 1",
  "Path": {
    "$id": "2",
    "$values": [
      "C",
      ":",
      "\\",
      "t",
      "e",
      "m",
      "p"
    ]
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions