Ultima modifica da un moderatore:
Questo plugin può caricare e analizzare un file JSON. Può essere utilizzato per la traduzione di parole o frasi - scritta in un file esterno JSON .
I "simpatici personaggi" nella demo-JSON-file sono i caratteri Unicode .
Perché carica un file personalizzato json questo plugin non funziona in modalità anteprima . ____________________________aggiornamento v 1. 2 Bugfix - ottenere le voci di chiavi Demo + + Plugin JSON-file v 1.2. (Capx per C2 R85) (secondo test con meno tasti )
due espressioni più:
1) getRootKeysSize --> return number
Returns an integer how many keys exists in the JSON-file.
2) getKeySize(stringKey) --> return number
Returns an integer how many entries exist at the key- stringKey.
Demo + API + Esempio (v 1.0)
Proprietà: Il nome del file JSON. [Percorso facoltativo se il file non si trova vicino alla index.html esportato]
Condizione:
Azione:
Espressione:
getData(keyWordAsText,positionAsNumber) --> returns Text
eg json-data is: "dog": ["Dog", "Cane"]
getData("dog",0) --> returns "Dog"
getData("dog",1) --> returns "Cane"
-> restituisce "" Cane readLoadingReturn -> restituisce Testo
mostrano lo stato di carico: parola è stata trovata, non trovato, buon fine, errore, ..
Come usare il plugin
Fonte
I "simpatici personaggi" nella demo-JSON-file sono i caratteri Unicode .
Perché carica un file personalizzato json questo plugin non funziona in modalità anteprima . ____________________________aggiornamento v 1. 2 Bugfix - ottenere le voci di chiavi Demo + + Plugin JSON-file v 1.2. (Capx per C2 R85) (secondo test con meno tasti )
due espressioni più:
1) getRootKeysSize --> return number
Returns an integer how many keys exists in the JSON-file.
2) getKeySize(stringKey) --> return number
Returns an integer how many entries exist at the key- stringKey.
Demo + API + Esempio (v 1.0)
Proprietà: Il nome del file JSON. [Percorso facoltativo se il file non si trova vicino alla index.html esportato]
Condizione:
Azione:
Espressione:
getData(keyWordAsText,positionAsNumber) --> returns Text
eg json-data is: "dog": ["Dog", "Cane"]
getData("dog",0) --> returns "Dog"
getData("dog",1) --> returns "Cane"
-> restituisce "" Cane readLoadingReturn -> restituisce Testo
mostrano lo stato di carico: parola è stata trovata, non trovato, buon fine, errore, ..
Come usare il plugin
Fonte