using "apps/lib/json_native/core/node.hako" as JsonNode
using "apps/lib/json_native/utils/string.hako" as StringUtils

// シンプルなJSONテスト
static box SimpleTest {
    main() {
        print("🧪 Simple JSON Test")

        // 基本的なテスト
        local json_null = JsonNode.parse("null")
        print("null parse: " + json_null.stringify())

        local json_bool = JsonNode.parse("true")
        print("true parse: " + json_bool.stringify())

        local json_int = JsonNode.parse("42")
        print("integer parse: " + json_int.stringify())

        local json_str = JsonNode.parse("\"hello\"")
        print("string parse: " + json_str.stringify())

        // StringUtils テスト
        local trimmed = StringUtils.trim("  hello world  ")
        print("trimmed: '" + trimmed + "'")

        print("✅ Simple test complete")
        return 0
    }
}