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

  • Home
  • SEARCH
  • 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 7647599
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T10:30:11+00:00 2026-05-31T10:30:11+00:00

I am trying to deserialize this Json: [ { Address: String content, CategoryId: 2147483647,

  • 0

I am trying to deserialize this Json:

[
    {
        "Address": "String content",
        "CategoryId": 2147483647,
        "CategoryName": "String content",
        "City": "String content",
        "Email": "String content",
        "GroupComment": "String content",
        "GroupName": "String content",
        "IntegrationType": "String content",
        "Location": {
            "Latitude": 1267432330000000,
            "Longitude": 1267432330000000
        },
        "Phone": "String content",
        "StoreComment": "String content",
        "StoreName": "String content",
        "Website": "String content",
        "ZipCode": "String content"
    }
]
  .......

I have 2 classes:

    public class Stores
    {
        public string Address { get; set; }
        .......
        public GeoLocation geoLocation { get; set; }
    }

    public class GeoLocation
    {
        public double Latitude { get; set; }
        public double Longitude { get; set; }
    }

And I am deserialize the Json like this:

Stores[] st = new Stores[200];
MemoryStream ms = new MemoryStream(Encoding.Unicode.GetBytes(e.Result));
DataContractJsonSerializer serializer = new DataContractJsonSerializer(st.GetType());
st = serializer.ReadObject(ms) as Stores[];
ms.Close();

I get the Address etc, but the GeoLocation “Could not evaluate expression”.

What is wrong?

Peter

  • 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-31T10:30:13+00:00Added an answer on May 31, 2026 at 10:30 am

    Try changing the geoLocation member name to Location?

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

Sidebar

Related Questions

I am trying to deserialize a JSON String like (extracted this bit to show
I am trying to use eval() function to deserialize this JSON text by using
I am trying to deserialize a JSON string that was serialized by JSON.Net 4.0
I am trying to deserialize a JSON string using VB.net and cannot seem to
Hi i am trying to parse Json using gson library.My Json String is this
I'm trying to deserialize sample JSON at the end of this question with below.
I am trying to use the example in this link http://sharpdevpt.blogspot.com/2009/10/deserialize-json-on-c.html?showComment=1265045828773#c2497312518008004159 But my project
Trying to deserialize this JSON: { result:success arguments: { activeTorrentCount:22, cumulative-stats: { downloadedBytes:1111, }
I am trying to deserialize a stream but I always get this error End
I'm trying to deserialize an xml structure that looks like this: <somecontainer> <key1>Value1</key1> <key1>Value2</key1>

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.