C# Library for the Fjord Config Format
1# Fjord Config Format 2 3## How to use 4 5### Deserialize from file 6 7```c# 8using libfcf; 9 10Dictionary<string, dynamic> deserializedObject = Parser.DeserializeObjectFromFile("./config.fc"); 11``` 12 13### Deserialize from memory 14 15```c# 16using libfcf; 17 18string memory = """ 19version = 1.4, 20name = FCF, 21buildOptions = [ 22 "Release", 23 "Beta", 24 "Alpha" 25] 26"""; 27 28Dictionary<string, dynamic> deserializedObject = Parser.DeserializeObjectFromMemory(memory); 29``` 30 31## JSON Comparison 32 33```json 34{ 35 "persons": [ 36 { 37 "name": "keii", 38 "age": 16, 39 "alive": true 40 }, 41 { 42 "name": "keii2", 43 "age": 17, 44 "alive": false 45 } 46 ] 47} 48``` 49 50``` 51persons = [ 52 { 53 name = "keii", 54 age = 16, 55 alive = true 56 }, 57 { 58 name = "keii2", 59 age = 17, 60 alive = false 61 } 62] 63``` 64 65Differences: 66- Implied top level object eg. no need to surround top level object in curly braces "{}" 67- Names are identifiers not strings to have a clear distinction. 'false', 'true' and all float parsable numbers are invalid identifiers. 68- Usage of equals "=" instead of colon ":" to more clearly designate an assign operation