File tree Expand file tree Collapse file tree 1 file changed +15
-10
lines changed Expand file tree Collapse file tree 1 file changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,21 @@ import kotlinx.serialization.Serializable
88 * Main application entry point for testing JSON5 parsing and serialization.
99 */
1010fun main () {
11+ // Test serialization and deserialization of Employee model
12+ testEmployeeSerialization()
13+
14+ // Run README sample code validation tests
15+ println (" \n === README Sample Code Validation ===" )
16+ testBasicParsingAndStringifying()
17+ testKotlinxSerializationIntegration()
18+ testAdvancedFeatures()
19+ testMigrationCompatibility()
20+
21+ // Test sample JSON5 files from resources
22+ testSampleJson5Files()
23+ }
24+
25+ private fun testSampleJson5Files () {
1126 val json5files = listOf (
1227 " simple-object.json5" ,
1328 " array-example.json5" ,
@@ -36,16 +51,6 @@ fun main() {
3651 }
3752 println (" \n ===============================\n\n " )
3853 }
39-
40- // Test serialization and deserialization of Employee model
41- testEmployeeSerialization()
42-
43- // Run README sample code validation tests
44- println (" \n === README Sample Code Validation ===" )
45- testBasicParsingAndStringifying()
46- testKotlinxSerializationIntegration()
47- testAdvancedFeatures()
48- testMigrationCompatibility()
4954}
5055
5156
You can’t perform that action at this time.
0 commit comments