Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
gdevelop5:all-features:network [2018/10/15 23:37]
valiant_curiosity [Send a request to a server/API/web page]
gdevelop5:all-features:network [2019/01/19 19:28]
4ian
Line 44: Line 44:
 <​note>​Learn more about Structures on the page about [[gdevelop5:​all-features:​variables|variables]].</​note>​ <​note>​Learn more about Structures on the page about [[gdevelop5:​all-features:​variables|variables]].</​note>​
  
-Structures are useful as they can store all the data concerning something, that can then be send to a server. To do this, you can convert the structure variable to JSON, using the expression called `ToJSON`. For example:+Structures are useful as they can store all the data concerning something, that can then be sent to a server. To do this, you can convert the structure variable to JSON, using the expression called `ToJSON`. For example:
  
-`ToJSON(Progress)`+``` 
 +ToJSON(Progress) 
 +```
  
-If Progress variable has a children "​Level"​ with value 4 and "​Score"​ with value 1500, the resulting JSON will be: `{"​Level":​ 4, "​Score":​ 1500}`.+If the Progress variable has a children "​Level"​ with value 4 and "​Score"​ with value 1500, the resulting JSON will be: `{"​Level":​ 4, "​Score":​ 1500}`.
  
 You can use it as the content of a request send to the server. You can use it as the content of a request send to the server.