C3 Data Convert Example

4

Index

Stats

2,803 visits, 5,965 views

Tools

Translations

This tutorial hasn't been translated.

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Published on 27 Dec, 2023. Last updated 11 Sep, 2024

How to Load Project JSON file

json file

Ajax + JSON object

  • Tab 1

    Professional Way

    {"is-c3-clipboard-data":true,"type":"events","items":[{"eventType":"block","conditions":[{"id":"on-start-of-layout","objectClass":"System"}],"actions":[{"id":"request-project-file","objectClass":"AJAX","parameters":{"tag":"\"file\"","file":"file.json"}}]},{"eventType":"block","conditions":[{"id":"on-completed","objectClass":"AJAX","parameters":{"tag":"\"file\""}}],"actions":[{"id":"parse","objectClass":"JSON","parameters":{"data":"AJAX.LastData"}}]}]}
    		

    Simpler way

    		{"is-c3-clipboard-data":true,"type":"events","items":[{"eventType":"block","conditions":[{"id":"on-start-of-layout","objectClass":"System"}],"actions":[{"id":"request-project-file","objectClass":"AJAX","parameters":{"tag":"\"file\"","file":"file.json"}},{"id":"wait-for-previous-actions","objectClass":"System"},{"id":"parse","objectClass":"JSON","parameters":{"data":"AJAX.LastData"}}]}]}
    		
  • Step:Request file

    Step 1:

    Step 2:

  • Step:Request URL

    Step 1:

    Step 2:

    Project Path URL

    		"file.json"
    		"folder/file.json"
    		"file" & variable & ".json"
    		replace("file{0}.json", "{0}",variable)
    		StringSub("file{0}.json", variable)
    		
  • 0 Comments

Want to leave a comment? Login or Register an account!