Attributes and values starting with numbers in JS

Source: Internet
Author: User

Example JSON:

{"Total": 13, "rows": [{"hospitaltotal": 57338127.7400, "Total": 59099795.9870, "08_clinic": 200.0000, "09_hostipal": 5840941.3100, "01_clinic": 738864.0840, "11_hostipal": 5902347.7500, "clinictotal": 1761668.2470, "02_hostipal": 4536070.4900, "06_hostipal": 0.0000, "15_clinic": 30832.5000, "orgcode ": "420527070001", "05_clinic": 145116.8000, "orgname": "xxxxxx", "12_hostipal": 507978.8600, "15_hostipal": 5399068.7200, "Showtime": "XXXX ", "09_clinic": 191929.2000, "07_hostipal": 4182589.2200, "02_clinic": 333004.6630, "07_clinic": 7526.0000, "05_hostipal": 10810777.8800, "12_clinic": 640.0000, "04_hostipal ": 4864970.8300, "14_hostipal": 0.0000, "10_hostipal": 3389179.8800, "11_clinic": 3188.0000, "14_clinic": 126270.0000, "01_hostipal": 6132355.0500, "06_clinic": 1.0000, "10_clinic": 33872.0000, "04_clinic": 150224.0000, "08_hostipal": 5771847.7500}]}After it is changed to an object: it will not be written if it is changed to an object.

Solution:

VaR temp = row ['01 _ clinic ']; // if you cannot set this value to row.01 _ clinic, an error is returned.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.