Deserialize Json Response from Sending Files

Discussion in 'LiquidFiles General' started by Christian Stenvik, Oct 20, 2017.

  1. Christian Stenvik

    Christian Stenvik New Member

    Joined:
    Oct 20, 2017
    Messages:
    2
    Likes Received:
    0
    Hello!

    I am writing some .Net code to upload files.
    When trying to deserialize the json response, I had to replace the "&quot with \" and then HtmlDecode the result for the deserialization to work.
    This is also the case when using the example response.
    Am I missing something or is there a bug in the html and plain response?
    Shouldn't the first and last &quot been escaped?

    Bad JSON escape sequence: \&. Line 10, position 36

    -Christian
     
  2. Johan

    Johan Administrator
    Staff Member

    Joined:
    Dec 1, 2015
    Messages:
    39
    Likes Received:
    1
    Hi Christian,

    I just had a look at this and there's definitely a slight problem with the html and plain outputs in the JSON response when sending messages. Basically there's a double-quote ("" .....) that shouldn't be there. This will be fixed in the next release (v3.1.8 when ready). Alternatively for now, you can use the base64 encoded html or plain responses and just base64 decode the html or plain response respectively.
     
  3. Christian Stenvik

    Christian Stenvik New Member

    Joined:
    Oct 20, 2017
    Messages:
    2
    Likes Received:
    0
    Hi Johan!

    Well, for me to access the various properties of the response, I first need to deserialize it and thats whats not working...

    Christian
     

Share This Page