none
My Services successfull giving JSON but not in corrent format RRS feed

  • Question

  • i made my WCF so that it will return a JSON . and guess what i does this.

    but my JSON some character are different that the database.

    My Database is :


    MobinYaqoob

    Wednesday, November 25, 2015 12:53 PM

Answers

  • Its fine like that, it needs to escape the slashes in order to let it be parsed to a string correctly

    Please don't use such a big picture on such small space next time, just the relevant string would have been sufficient.

    If you need a workaround, implement a BodyWriter and remove the Slashes. (Or use some other Extemsion to do it)

    ...or use another Serializer, cause the one from microsoft...

    • Edited by MDeero Wednesday, November 25, 2015 1:27 PM
    • Marked as answer by MobinYaqoob Wednesday, November 25, 2015 1:43 PM
    Wednesday, November 25, 2015 1:16 PM