LogoLogo
  • Internet Object 1.0
  • Internet Object
    • Abstract
    • The Poetic Principles of Internet Object
    • Objectives
    • Introducing Internet Object
  • The Structure
    • Internet Object Document
      • Header
      • Data Sections
    • Structural Elements
      • Structural Characters and Literals
      • Literals
      • Other Special Characters
      • Whitespaces
    • Values Representations
      • Objects
      • Arrays
      • Strings
        • Open Strings
        • Regular Strings
        • Raw Strings
      • Numeric Values
        • Number
        • BigInt
        • Decimal
        • Special Numeric Integer Formats
          • Hexadecimal
          • Octal
          • Binary
        • NaN and Infinity
      • Binary
      • Date and Time
      • Booleans
      • Nulls
    • Comments
    • Encoding
  • The Collections
    • Collection
    • Creating Collection
    • Collection Rules
    • Data Streaming
  • The Definitions
    • Definitions
    • Variables
    • Complex Schema
  • Schema Definition Language
    • Internet Object Schema
    • The structure
    • Data Types
      • Any
      • String
        • String Derived Types
          • Email
          • URL
          • Date
          • Time
          • DateTime
      • Number
        • Derived Types
          • int
          • byte
          • int16
          • int32
      • Object
      • Array
      • Bool
    • Dynamic Schema
    • Is Object, a MemberDef or a Schema?
  • Other
    • Best Practices
    • FAQs
    • Contributors
    • License
Powered by GitBook
On this page
  • Usage Examples
  • Notes

Was this helpful?

Edit on GitHub
Export as PDF
  1. The Structure
  2. Structural Elements

Literals

Literals are specific values that can be used within an Internet Object document. They represent special values and basic data indicators. Below are the literals used in the Internet Object format:

Literals
Represents
Notes

T

Boolean value True (short)

Case-sensitive

true

Boolean value True

Use interchangeably with T

F

Boolean value False (short)

Case-sensitive

false

Boolean value False

Use interchangeably with F

Inf

Number value Infinity

Represents positive infinity

-Inf

Number value Negative Infinity

Represents negative infinity

NaN

Number value Not a Number

Represents an undefined or unrepresentable value

N

Null value (short)

Case-sensitive

null

Null value

Use interchangeably with N

Usage Examples

# Boolean literals
~ isActive: true, isVerified: F

# Special number literals
~ maxValue: Inf, minValue: -Inf, result: NaN

# Null literals
~ middleName: null, nickname: N

Notes

  • Case Sensitivity: All literals are case-sensitive. For example, True or FALSE are not recognized as valid literals.

  • Short vs. Long Forms: The short forms (T, F, N) are convenient for brevity, while the long forms (true, false, null) enhance readability and compatibility with JSON.

PreviousStructural Characters and LiteralsNextOther Special Characters

Last updated 7 months ago

Was this helpful?