- Joined
- Jul 20, 2019
- Messages
- 1
- Likes
- 0
- Points
- 0
i want adding function distance but get this error
Debug|Reading config...
Fatal|Newtonsoft.Json.JsonSerializationException: Could not find member 'Distance' on object of type 'WatchFace'. Path 'Distance', line 68, position 15.
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
at WatchFace.Program.ReadWatchFaceConfig(String jsonFileName)
this my distance coding
"Distance": {
"Number": {
"TopLeftX": 96,
"TopLeftY": 225,
"BottomRightX": 70,
"BottomRightY": 157,
"Alignment": "Right",
"Spacing": 0,
"ImageIndex": 11,
"ImagesCount": 10
},
"SuffixImageIndex": 91,
"DecimalPointImageIndex": 90
}
},
im alos attac my json file
Debug|Reading config...
Fatal|Newtonsoft.Json.JsonSerializationException: Could not find member 'Distance' on object of type 'WatchFace'. Path 'Distance', line 68, position 15.
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
at WatchFace.Program.ReadWatchFaceConfig(String jsonFileName)
this my distance coding
"Distance": {
"Number": {
"TopLeftX": 96,
"TopLeftY": 225,
"BottomRightX": 70,
"BottomRightY": 157,
"Alignment": "Right",
"Spacing": 0,
"ImageIndex": 11,
"ImagesCount": 10
},
"SuffixImageIndex": 91,
"DecimalPointImageIndex": 90
}
},
im alos attac my json file