Howto:Serializing Nasal data structures: Difference between revisions

m
Line 18: Line 18:




Another possibility would be using a subset of JSON, i.e. to serialie/unserialize Nasal data structures as scalars, vectors and hashes - which should be pretty straightforward. The format would then be plain text, and it would just be evaluated via Nasal's compile()/call() APIs to turn data structures back into Nasal types.<ref>{{cite web
Another possibility would be using a subset of JSON, i.e. to serialize/unserialize Nasal data structures as scalars, vectors and hashes - which should be pretty straightforward. The format would then be plain text, and it would just be evaluated via Nasal's compile()/call() APIs to turn data structures back into Nasal types.<ref>{{cite web
   |url    =  https://forum.flightgear.org/viewtopic.php?p=257091#p257091  
   |url    =  https://forum.flightgear.org/viewtopic.php?p=257091#p257091  
   |title  =  <nowiki> Re: String manipulation and file I/O (pm2thread) </nowiki>  
   |title  =  <nowiki> Re: String manipulation and file I/O (pm2thread) </nowiki>  
Line 51: Line 51:
   |script_version = 0.40  
   |script_version = 0.40  
   }}</ref>
   }}</ref>


== Proof of concept ==
== Proof of concept ==
41

edits