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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:42:13+00:00 2026-05-27T20:42:13+00:00

My code: string result = [{lat:b, lon:d, ulica:ulica1}]; jArray = new JSONArray(result); tab =new

  • 0

My code:

string result = "[{"lat":"b", "lon":"d", "ulica":"ulica1"}]";
jArray = new JSONArray(result);
tab =new String[jArray.length()];
json = jArray.getJSONObject(0);

tab[0]=json.getString("lat");
tab[1]=json.getString("lon");  
tab[2]=json.getString("ulica");

it throws jsonException, no value for lon. Can anyone help me?

It was my mistake instead of lon I had lot in my result string… I was looking for this misspelling from early morning …. ;P

  • 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-27T20:42:14+00:00Added an answer on May 27, 2026 at 8:42 pm

    you must escape ” with \” so instead of “a” you need to have \”a\”

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

Sidebar

Related Questions

I have the following code : std::string Utils::get() { std::string result; result.append(1, 'x'); result.append(1,
The following snippet of C# code: int i = 1; string result = String.Format({0},{1},{2},
I have the following code: public static T ParameterFetchValue<T>(string parameterKey) { Parameter result =
This code: System.out.println(String.format(%f, Math.PI)); System.out.println(Math.PI); produces that result on my computer: 3,141593 3.141592653589793 Why
I have the following code: String inputFile = somefile.txt; FileInputStream in = new FileInputStream(inputFile);
I used the following code. string result = DateTime.ParseExact(24/5/2009 3:40:00 AM, d/M/yyyy h:mm, CultureInfo.InvariantCulture)
I have this code : /*string theXml = @<Response xmlns=http://myvalue.com><Result xmlns:a=http://schemas.datacontract.org/2004/07/My.Namespace xmlns:i=http://www.w3.org/2001/XMLSchema-instance><a:TheBool>true</a:TheBool><a:TheId>1</a:TheId></Result></Response>;*/ string theXml
Here's the code snippet: XDocument themes = XDocument.Load(HttpContext.Current.Server.MapPath(~/Models/Themes.xml)); string result = ; var childType
I tried the following code in LINQPad and got the results given below: List<string>
Here's the code: string name = myName; int id = (int)_myDB.ThingTable.Where(thing => thing.ThingName ==

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.