JSON data encoding

Source: Internet
Author: User
The JSON data is encoded and stored by the customer. one of the items is the year.
2014 2015 2016 2017 2018 five years
Except for the data stored in 2015, it is normal to use the json encode in $ ajax to store the txt file. after viewing the file, it is found that the value is 2105.
If the format is read again, the problem cannot be displayed.
Do you have any solutions?


Reply to discussion (solution)

What are you talking about?

Year:Select...20142015201620172018



$("#anneeAAP option").filter(function() {return $(this).text() == msg.anneeAAP;}).prop('selected',true);


Txt
"anneeAAP";s:4:"2105";

When selected, the option is 2015. after saving the option to txt, it is 2105.
There are no problems with the storage for several other years. if 2014 is saved, 2014,201 6 is 2016... the problem is that we chose 2015, which is found in the txt file and saved in 2105, but it cannot be displayed.
Is it about json encoding?

2015
Are you testing our IQ?

Amount .........
I'm sorry. I believe you have never found anything.
Thanks to the moderator's reminder, it will take a long time to check the problem.
Thank you !!!

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.