You must Sign In to post a response.
  • Category: .NET

    Add comma between two json objects

    Hi ,

    How do add comma between two json objects..
    im getting below string from client and how to deserialize the object.

    {\"Amount\":28,\"Plan\":\"2011-10-22\",\"validity\":\"Tom\"}{\"Amount\":28,\"Plan\":\"2011-10-22\",\"validity\":\"Tom\"}

    Regards,
    Suneel
  • #761260
    You can do it manually. use replace command

    1. "Jsonstring".replace("}","},");
    2. Remove the last "," from the string

    By Nathan
    Direction is important than speed


Sign In to post your comments