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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:45:35+00:00 2026-05-27T17:45:35+00:00

Hi I am developing Android application using Titanium.I want to change value of particular

  • 0

Hi I am developing Android application using Titanium.I want to change value of particular attributes of json object.I tried following code :

var row_jsonfeed = this.responseText;
var jsonfeed = eval('('+row_jsonfeed+')');    

my jsonfeed object look like this :

{"feeds":
[
   {"username":"abc","user":"abc","feed":{"description":"dss","id":660,"user_id":1}},
   {"username":"bcd","user":"bcd","feed":{"description":"dddd","id":659,"user_id":1}}
]
}

I want to change username value so I tried like this:

jsonfeed.feeds[0].username = "xyz";
alert(jsonfeed.feeds[0].username);

But it’s not working.It not giving me changed value of username.Any other alternative way to do this. Instead of eval I also tried JSON.parse but that also not working.So i need proper way to do this.Thank you 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-27T17:45:36+00:00Added an answer on May 27, 2026 at 5:45 pm

    I think the problem is with your call to eval. You forgot to concatenate your parens:

    eval('(' + row_jsonfeed + ')');   
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using titanium for developing Android application. I want to delete some data
I'm developing Android application using third party libraries (Twitter4j). I want to be able
I am new in developing android applications. I want to create an android application(using
I am developing an Android application using SQLite as backend. I want to make
I am using Titanium appcelerator for developing my android application, more over i am
I'm currently developing an Android application that fetches images using http requests. It would
i am developing an android application using google maps data.I can access google maps
I am developing a simple android application using eclipse. I wrote a JUnit TestCase
I'm developing an Android application using Android 1.5. I'm using an older version of
I new in the android developing. I want to develop simple application that will

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.