Lunar Parser supports reading and writing data nodes in a custom binary format. If this behavior is not suitable for your program, please compile Lunar Parser from source, with the DATETIME_AS_TIMESTAMPS conditional symbol removed. This saves space without losing any data down to seconds (miliseconds will be lost, any dates before UNIX epoch will be lost). So if you serialize it to JSON or XML you will find just a very long number instead of multiple fields. Lunar Parser automatically converts DateTime to UNIX timestamps (and does the opposite when loading). WriteToFile( "some_file.json ", root) Notes DateTime type LoadFromFile( "some_file.xml ") ĭataFormats. OR // content type is auto-detected based on extension var root = DataFormats. Conversion between formats var xml = File.
0 Comments
Leave a Reply. |