C3 Data Convert Example

2
  • 0 favourites

Index

Stats

1,129 visits, 2,576 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.

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)
    		
  • 0 Comments

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