Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Studio Chat / [Guide] Use JSON export with HTML5

Author
Message
hosch
Developer
2
Years of Service
User Offline
Joined: 25th May 2021
Location:
Posted: 15th Feb 2022 13:47 Edited at: 15th Feb 2022 13:48
HTML5 in AppGameKit does not allow multi line cookies to be exported and saved as a shared variable. I do not know the reason for this, but had to use JSON with HTML5 for my latest project. You are not allowed any whitespace, so unfortunately you can't use spaces in your JSON data itself. That's the only limitation I am aware of.

Besides:

- make sure your JSON file is below 4096 bytes, this is the general cookie size limit
- strip your JSON export from all CHR(10)
- strip your JSON export from all ""

TamBam
12
Years of Service
User Offline
Joined: 29th Nov 2011
Location: India
Posted: 17th Feb 2022 12:17
json use {"key":"value"} concept . app game kit not support space in "key" but support space in "value" so if your json is {"your address":"47/2 world india kolkata"} and here you use StripString then key remove space and values also remove space .
linuxluvuback
8
Years of Service
User Offline
Joined: 17th Oct 2015
Location:
Posted: 25th Mar 2022 20:43
spaces are evil
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 27th Mar 2022 14:41
Quote: "You are not allowed any whitespace, so unfortunately you can't use spaces in your JSON data itself. "


That's wrong, spaces are allowed in json data. I just tested it. https://zimnox.tech/html/junky.html



Tiled TMX Importer V.2
XML Parser V.2
Base64 Encoder/Decoder
Purple Token - Free online hi-score database
Legend of Zelda

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds

Login to post a reply

Server time is: 2024-04-25 07:39:48
Your offset time is: 2024-04-25 07:39:48