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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:55:57+00:00 2026-05-22T16:55:57+00:00

I’m trying to retrieve the value of the jsonso state object passed as a

  • 0

I’m trying to retrieve the value of the jsonso state object passed as a custom paramter into the Bing Maps REST Geo Location (http://dev.virtualearth.net/REST/v1/Locations/…). I can see the value returned as a second parameter in the response method call (Using network monitor), but can’t seem to access it in code. Here’s what the return method looks like (excerpted):

jsonp1301929429652({“authenticationResultCode”:”ValidCredentials”, …more data… ,”traceId”:”41a7523951964ae9a76ca4ea91c4e80f|CH1M001467|02.00.82.2800|CH1MSNVM001383″}, “My Custom Value”)

I’m trying to pick it up in the anonymous method, like this:

$.getJSON(geocodeRequest, function (d, customParam) {

    if (d != null && d.resourceSets.length > 0) {
        var coordinates = d.resourceSets[0].resources[0].point.coordinates;
        var loc = new Microsoft.Maps.Location(coordinates[0], coordinates[1]);
        ....
    }
}

Unfortunately, the customParam is always undefined. How can I get that value?

Okay, here is a testable example:

$(function () {
            var mapOptions = {
                credentials: "Your API Key"
            }
            var geocodeRequest = "http://dev.virtualearth.net/REST/v1/Locations/US/Your State Abbrev/Your Zip/Your City/Your Street Address?jsonso=ABC123&jsonp=?&key=" + mapOptions.credentials;

            $.getJSON(geocodeRequest, function (d, arg1, arg2, arg3) {
                if (d != null && d.resourceSets.length > 0) {
                    var readMyCustomParam = arg1;
                }
            });
        });

If you break on the first line inside the getJSON request you can monitor the traffic you will see the result of the request returns the jsonso parameter properly. My problem is then reading that in javascript. The whole purpose for this is to loop through a list of dealers, async geo locate, then use the returned identifier to lookup the dealer in the array to load it’s description, etc for the pushpoint mouseover.

  • 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-22T16:55:58+00:00Added an answer on May 22, 2026 at 4:55 pm

    @Corgalore, sorry for the delay, I probably should have registered with an email I use more frequently. In case this has not yet been solved.. I see your value is coming back, but it’s not well formed

    per JSLint.com :

    Error:

    Problem at line 1 character 568: Expected ‘(end)’ and instead saw ‘,’.

    {“authenticationResultCode”:”ValidCredentials”,”brandLogoUri”:”http:\/\/dev.v…

    JSON: bad.

    {"authenticationResultCode":"ValidCredentials",
    "brandLogoUri":"http:\/\/dev.virtualearth.net\/Branding\/logo_powered_by.png",
    "copyright":"Copyright © 2011 Microsoft and its suppliers. All rights reserved. This API cannot be accessed and the content and any results may not be used, reproduced or transmitted in any manner without express written permission from Microsoft Corporation.",
    "resourceSets":[{"estimatedTotal":0,
        "resources":[]}],
        "statusCode":200,
        "statusDescription":"OK",
        "traceId":""},
         "ABC123"
    

    Remove the , “ABC123” and JSLint says “JSON: good.”

    It appears you’ll have to use a custom parser to get that value …or at least a parser that’s more forgiving. Unless I was doing something wrong, jsonParse using jQuery didn’t work for me on this string.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
I am trying to render a haml file in a javascript response like so:
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
i got an object with contents of html markup in it, for example: string

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.