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

The Archive Base Latest Questions

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

I have an array of objects that I generate from JSON.parse. I access its

  • 0

I have an array of objects that I generate from JSON.parse. I access its properties like this:

AnObject['PhoneList'][i]['PhoneLabel']

When I run the code through the google closure compiler, the name of the properties is not obfuscated and clearly visible. Why are the names of object properties not obfuscated?

  • 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-31T05:30:46+00:00Added an answer on May 31, 2026 at 5:30 am

    Google closure has a difficult time figuring out what it can and can’t rename. For example, any data structure that is created or referenced by code outside the Google closure compiled code cannot be renamed or the two sides won’t be expecting the same code. Further, referencing properties via constructed strings makes it next to impossible for closure to do it’s job well. As such, Closure has a whole bunch of rules and settings to help you control this and direct it for what to do. I’d suggest you read up on those rules/settings at these references:

    https://developers.google.com/closure/compiler/docs/api-tutorial3

    https://developers.google.com/closure/compiler/docs/compilation_levels

    https://groups.google.com/group/closure-stylesheets-discuss/browse_thread/thread/386ba6db27a43887?pli=1

    https://developers.google.com/closure/compiler/docs/limitations

    And, quoted from this last reference:

    String representations of function or parameter names:

    The Compiler renames functions and function parameters but does not
    change any strings in your code that refer to functions or parameters
    by name. You should thus avoid representing function or parameter
    names as strings in your code. For example, the Prototype library
    function argumentNames() uses Function.toString() to retrieve the
    names of a function’s parameters. But while argumentNames() might
    tempt you to use the names of arguments in your code, Simple mode
    compilation breaks this kind of reference.

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

Sidebar

Related Questions

I have a vector-like class that contains an array of objects of type T
I have applications(WinForm) that gets some objects from webservice. After receiving array I transform
I have an Array of Objects that need the duplicates removed/filtered. I was going
I have an array of objects that have QTTime structs as attributes. The objects
I have a mutable array that is retained and storing several objects. At some
Hi I have a JSON object that is a 2-dimentional array and I need
I'm creating my own JavaScript Array-like object and I have methods that call closures.
I have a string called TheUserTime that looks like this: string TheUserTime = 12.12.2011.16.22;
I have an array in c# that is 1-based (generated from a call to
I have an array an a timer that adds a new object to my

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.