C# Library for the Fjord Config Format
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

C# 100.0%
5 1 0

Clone this repository

https://tangled.org/keii.dev/libfcf https://tangled.org/did:plc:ooawnspa3j4o7cinoryhglqv/libfcf
git@tangled.org:keii.dev/libfcf git@tangled.org:did:plc:ooawnspa3j4o7cinoryhglqv/libfcf

For self-hosted knots, clone URLs may differ based on your setup.

Download tar.gz
README.md

Fjord Config Format#

How to use#

Deserialize from file#

using libfcf;

Dictionary<string, dynamic> deserializedObject = FCF.DeserializeObjectFromFile($filePath);

Deserialize from memory#

using libfcf;

string memory = """
version = 1.4,
name = FCF,
buildOptions = [
    "Release",
    "Beta",
    "Alpha"
]
""";

Dictionary<string, dynamic> deserializedObject = FCF.DeserializeObjectFromMemory(memory);

JSON Comparison#

{
    "persons": [
        {
            "name": "keii",
            "age": 16,
            "alive": true
        },
        {
            "name": "keii2",
            "age": 17,
            "alive": false
        }
    ]
}
persons = [
    {
        name = "keii",
        age = 16,
        alive = true
    },
    {
        name = "keii2",
        age = 17,
        alive = false
    }
]

Differences:

  • Implied top level object eg. no need to surround top level object in curly braces "{}"
  • Names are identifiers not strings to have a clear distinction
  • Usage of equals "=" instead of colon ":" to more clearly designate an assign operation