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 8851329
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T13:07:44+00:00 2026-06-14T13:07:44+00:00

i was diagnosing an issue where i had json or jsv objects being received

  • 0

i was diagnosing an issue where i had json or jsv objects being received in web form or query variables and was getting an Index was outside the bounds of the array exception being thrown by servicestack. This is a rest client in another product sending this to my servicestack rest services.

I narrowed it down to de-serializing a form variable with an empty string as the value instead of json.

this is a simple test case that does the same thing. I would have expected null being returned?
v3.9.26 servicestack.text

`

    class simpleDTO {
        public string FirstName { get; set; }
        public string LastName { get; set; }
    }


    [TestMethod]
    public void TestMethod1()
    {
        var json = "";
        var o = JsonSerializer.DeserializeFromString(json, typeof(simpleDTO));

        Assert.IsNull(o);
    }`        
  • 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-06-14T13:07:46+00:00Added an answer on June 14, 2026 at 1:07 pm

    That issue was fixed in this commit: 6ea6f235dc and should be included in the next ServiceStack.Text release.

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

Sidebar

Related Questions

I am having trouble diagnosing the following issue. There are 2 objects, a ring
I'm running into an issue with a web application that is exhausting all available
Having trouble diagnosing/fixing an issue on a website where the Wordpress sidebar won't appear
We are diagnosing an issue which seems to be related to StructureMap and a
I have an issue with a class being used in another project. Visual studio
I am having the same issue as described in this post, Diagnosing "Request timed
I have an ASP.NET web form application that on the server side I need
I'm having a real tough time diagnosing a 500 error from my application running
I have two sections in my webconfig that I think are an issue. The
I'd love help diagnosing the source of a duplicate symbol error that I'm receiving

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.