Question help for coding

Joined
Jul 20, 2019
Messages
1
Likes
0
Points
0
#1
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
 

Trusted Store

Members online

Our Telegram Channel

Which color of official strap would you like to buy for your Mi Band 3?

  • Black

    Votes: 2,154 52.8%
  • Deep Blue

    Votes: 1,197 29.4%
  • Redish Orange

    Votes: 727 17.8%

Forum statistics

Threads
2,415
Messages
40,545
Members
211,867
Latest member
saturndog
Top