Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 982799
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T04:45:22+00:00 2026-05-16T04:45:22+00:00

Could you help me for resolving this issue. I have one asp.net application, in

  • 0

Could you help me for resolving this issue. I have one asp.net application, in this i am using Javascript serializer for serializing a dataset followed by convertion to the list. That code is shown below.

JavaScriptSerializer json = new JavaScriptSerializer();
strJson = json.Serialize(aclDoc);

But, at the time of deserializing i got one ArguementException like Invalid Json Primitives with my Json value. My json value is

[{"Id":"F79BA508-F208-4C37-9904-DBB1DEDE67DB","App_Id":"ScriptFlow","Name":"New form","FriendlyName":"","Read":"Revoke","ReadRule":"a353776f-cbdc-48b7-a15b-4a2316d19b05","Update":"Grant","UpdateRule":"be30c34e-33ec-4c0a-9f09-4fd483f5f1b9","Create":"Revoke","CreateRule":"898dce4d-4709-45b6-8942-d7efb07cbd86","Delete":"Revoke","DeleteRule":"aa14d435-dec8-4ade-ad9b-830ae5ee15d0"}][{"Id":"1","Doc_Id":"858E013C-5775-4FDF-AA1E-2C84053EE39F","Name":"TextBox1","FriendlyName":"TextBox1","Read":"Grant","ReadRule":"0a2e3c0e-ad8f-4f75-9160-cfd9827ac894","Update":"Grant","UpdateRule":"ecad3cf4-104f-44dc-b815-de039f3a0396"},{"Id":"2","Doc_Id":"858E013C-5775-4FDF-AA1E-2C84053EE39F","Name":"TextBox2","FriendlyName":"TextBox2","Read":"Grant","ReadRule":"81e0e9ef-09f7-4c25-a58e-d5fdfbd4c2ba","Update":"Grant","UpdateRule":"2047f662-c881-413b-a1f9-69f15bf667fc"}]

The code for deserializing is:

JavaScriptSerializer json = new JavaScriptSerializer();
lstDoc = json.Deserialize<List<ACLDocument>>(value);
return lstDoc;

where lstDoc is a List Collection of type of my class

I got the exception like this:

Invalid JSON primitive:
{"Id":"1","Doc_Id":"858E013C-5775-4FDF-AA1E-2C84053EE39F","Name":"TextBox1","FriendlyName":"TextBox1","Read":"Grant","ReadRule":"0a2e3c0e-ad8f-4f75-9160-cfd9827ac894","Update":"Grant","UpdateRule":"ecad3cf4-104f-44dc-b815-de039f3a0396"},{"Id":"2","Doc_Id":"858E013C-5775-4FDF-AA1E-2C84053EE39F","Name":"TextBox2","FriendlyName":"TextBox2","Read":"Grant","ReadRule":"81e0e9ef-09f7-4c25-a58e-d5fdfbd4c2ba","Update":"Grant","UpdateRule":"2047f662-c881-413b-a1f9-69f15bf667fc"}].

Please help me for resolving this issue. Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T04:45:23+00:00Added an answer on May 16, 2026 at 4:45 am

    Your input string is really a wrong JSON string. You input consist from two correct JSON strings:

    [
        {
            "Id": "F79BA508-F208-4C37-9904-DBB1DEDE67DB",
            "App_Id": "ScriptFlow",
            "Name": "New form",
            "FriendlyName": "",
            "Read": "Revoke",
            "ReadRule": "a353776f-cbdc-48b7-a15b-4a2316d19b05",
            "Update": "Grant",
            "UpdateRule": "be30c34e-33ec-4c0a-9f09-4fd483f5f1b9",
            "Create": "Revoke",
            "CreateRule": "898dce4d-4709-45b6-8942-d7efb07cbd86",
            "Delete": "Revoke",
            "DeleteRule": "aa14d435-dec8-4ade-ad9b-830ae5ee15d0"
        }
    ]
    

    and

    [
        {
            "Id": "1",
            "Doc_Id": "858E013C-5775-4FDF-AA1E-2C84053EE39F",
            "Name": "TextBox1",
            "FriendlyName": "TextBox1",
            "Read": "Grant",
            "ReadRule": "0a2e3c0e-ad8f-4f75-9160-cfd9827ac894",
            "Update": "Grant",
            "UpdateRule": "ecad3cf4-104f-44dc-b815-de039f3a0396"
        },
        {
            "Id": "2",
            "Doc_Id": "858E013C-5775-4FDF-AA1E-2C84053EE39F",
            "Name": "TextBox2",
            "FriendlyName": "TextBox2",
            "Read": "Grant",
            "ReadRule": "81e0e9ef-09f7-4c25-a58e-d5fdfbd4c2ba",
            "Update": "Grant",
            "UpdateRule": "2047f662-c881-413b-a1f9-69f15bf667fc"
        }
    ]
    

    but you can not concatenate two JSON strings. To say exactly what you receive after such concatenating in not more a JSON string.

    I recommend you to verify JSON strings in http://www.jsonlint.com/. Just cut and paste the data which you need to verify and click “Validate” button.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm kinda stuck with this one so I hoped someone could help me. I
I am getting the following error and could use some help resolving it. Anyone
I hope someone could help me on this. I want to add a month
OK, if anyone could help me with this I'd be much appreciative. If you
Could you help me fix the menu on this this page ? The menu
I could use some help writing a regular expression. In my Django application, users
Already posted this in Google Analytics help forum, but noone could help. Hopefully I
I am not too familiar with regex and hope someone could help. example: This
Is there something available that could help me convert a XSD into SQL relational
I recently ran into a problem that I thought boost::lambda or boost::phoenix could help

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.