Click here to Skip to main content
15,880,972 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: not able to save image which is already saved with same name and to the same location Pin
ven7539-Feb-14 2:13
ven7539-Feb-14 2:13 
AnswerRe: not able to save image which is already saved with same name and to the same location Pin
PKJain7512-Feb-14 23:51
professionalPKJain7512-Feb-14 23:51 
Questionpopulating data from datagridview into textboxes Pin
Member 105062157-Feb-14 1:10
Member 105062157-Feb-14 1:10 
QuestionRe: populating data from datagridview into textboxes Pin
Eddy Vluggen7-Feb-14 8:55
professionalEddy Vluggen7-Feb-14 8:55 
QuestionError in conversion of application Pin
Ashish Sharma6-Feb-14 18:18
Ashish Sharma6-Feb-14 18:18 
AnswerRe: Error in conversion of application Pin
thatraja6-Feb-14 20:24
professionalthatraja6-Feb-14 20:24 
Questionnot able to Deserialize json signature lines Pin
ven7534-Feb-14 18:36
ven7534-Feb-14 18:36 
AnswerRe: not able to Deserialize json signature lines Pin
Richard Deeming5-Feb-14 2:57
mveRichard Deeming5-Feb-14 2:57 
The JSON you're trying to deserialize doesn't match the structure of the class you're trying to deserialize it to.

You can deserialize it to the following class:
C#
private class Signature
{
    public List<List<List<double>>> lines { get; set; }
}

var signature = serializer.Deserialize<Signature>(json);

This will give you a single object with a single property called lines. This property is a list containing a single element. That element is a list containing a sequence of lists, each of which contains a pair of numbers.
JavaScript
{
   lines: [
            [
               [156.44, 96.44],
               [156.44, 95.33],
               [155.33, 94.22],
               [154.22, 93.11],
               [154.22, 90.89],
               [153.11, 89.78],
               ...
            ]
   ]
}


How you map that data to your expected list of SignatureLine objects is unclear, since you haven't provided an example of how you expect to get four integers from two floating point numbers.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: not able to Deserialize json signature lines Pin
ven7535-Feb-14 5:17
ven7535-Feb-14 5:17 
GeneralRe: not able to Deserialize json signature lines Pin
Richard Deeming5-Feb-14 5:35
mveRichard Deeming5-Feb-14 5:35 
GeneralRe: not able to Deserialize json signature lines Pin
ven7535-Feb-14 6:11
ven7535-Feb-14 6:11 
GeneralRe: not able to Deserialize json signature lines Pin
Richard Deeming5-Feb-14 6:50
mveRichard Deeming5-Feb-14 6:50 
GeneralRe: not able to Deserialize json signature lines Pin
ven7535-Feb-14 7:18
ven7535-Feb-14 7:18 
GeneralRe: not able to Deserialize json signature lines Pin
Richard Deeming5-Feb-14 8:01
mveRichard Deeming5-Feb-14 8:01 
GeneralRe: not able to Deserialize json signature lines Pin
ven7535-Feb-14 16:09
ven7535-Feb-14 16:09 
GeneralRe: not able to Deserialize json signature lines Pin
Richard Deeming6-Feb-14 1:37
mveRichard Deeming6-Feb-14 1:37 
GeneralRe: not able to Deserialize json signature lines Pin
ven7536-Feb-14 6:54
ven7536-Feb-14 6:54 
GeneralRe: not able to Deserialize json signature lines Pin
Richard Deeming6-Feb-14 8:56
mveRichard Deeming6-Feb-14 8:56 
GeneralRe: not able to Deserialize json signature lines Pin
ven7536-Feb-14 16:18
ven7536-Feb-14 16:18 
GeneralRe: not able to Deserialize json signature lines Pin
ven7536-Feb-14 21:34
ven7536-Feb-14 21:34 
GeneralRe: not able to Deserialize json signature lines Pin
ven7537-Feb-14 7:03
ven7537-Feb-14 7:03 
GeneralRe: not able to Deserialize json signature lines Pin
Richard Deeming10-Feb-14 1:27
mveRichard Deeming10-Feb-14 1:27 
Question3 layers architecture & MVC Pin
kryptong4-Feb-14 3:20
kryptong4-Feb-14 3:20 
AnswerRe: 3 layers architecture & MVC Pin
Eddy Vluggen4-Feb-14 7:55
professionalEddy Vluggen4-Feb-14 7:55 
GeneralRe: 3 layers architecture & MVC Pin
kryptong4-Feb-14 8:08
kryptong4-Feb-14 8:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.