Created
March 13, 2018 02:25
-
-
Save lastday154/cdda4e38415a2f6fb95e5951e414c1a5 to your computer and use it in GitHub Desktop.
When sending data to a web server, the data has to be a string.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var mappingData = {}; | |
| mappingData[MASTER_PLATFORM_ID] = data; | |
| formData.append('mapping_data', JSON.stringify(mappingData)); | |
| https://www.w3schools.com/js/js_json_stringify.asp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment