• <GetStart>
  • CSPro User's Guide
    • The CSPro System
    • Data Dictionary Module
    • The CSPro Language
    • Data Entry Module
    • Batch Editing Applications
    • Tabulation Applications
    • Data Sources
    • CSPro Statements and Functions
    • Text Templates
    • Templated Reporting System
    • HTML, Markdown, and JavaScript Integration
    • Action Invoker
    • Appendix
      • Appendix A - Installation
      • Appendix B - Keys Summary
      • Appendix C - Menu Summary
      • Appendix D - Toolbar Summary
      • Appendix E - Application Properties
        • Application Properties
        • Paradata Properties
        • Mapping Properties
        • Logic Settings
        • JavaScript Properties
        • JSON Serialization Properties
        • Advanced Features Properties
        • Change Message Properties
      • Appendix F - Converting Within IMPS or ISSA
      • Appendix G - Errors in Censuses and Surveys
      • Appendix H - File Types
      • Appendix I - JSON Representations
  • <CSEntry>
  • <CSBatch>
  • <CSTab>
  • <DataManager>
  • <TextView>
  • <TblView>
  • <CSFreq>
  • <CSDeploy>
  • <CSPack>
  • <CSDiff>
  • <CSConcat>
  • <Excel2CSPro>
  • <CSExport>
  • <CSIndex>
  • <CSReFmt>
  • <CSSort>
  • <ParadataConcat>
  • <ParadataViewer>
  • <CSCode>
  • <CSDocument>
  • <CSView>
  • <CSWeb>

JSON Serialization Properties

To view options related to JSON serialization, including the serialization of symbols, select Application Properties from the Options menu of a data entry, batch edit, or tabulation application, and then select the JSON Serialization section. These options can also be set dynamically.
JSON Format
  • Compact (default): JSON is written with no extra spacing.
  • Pretty: JSON is written in a readable format with spaces and newlines.
For example:
{"jsonFormat":"compact","start":2000,"end":2025}
{
 
"jsonFormat": "pretty",
 
"start": 2000,
 
"end": 2025
}
Array Symbols
  • Full Array (default): An Array object is fully written as a JSON array.
  • Sparse Array: An Array object is written as a JSON object with property names representing array indices and property values representing non-default values. Default values are considered 0, or default for saved arrays.
HashMap Symbols
  • Array Format: A HashMap object is written as a JSON array with each element of the HashMap written as an object with "key" and "value" property names.
  • Object Format (default): A HashMap object is written as a JSON object with each HashMap element's key written as a property name and its value written as a property value.
Binary Content
  • Write as Data URL: Data of binary logic objects and dictionary items is written as a data URL.
  • Write as Localhost URL (default): Data of binary logic objects and dictionary items is written as a localhost URL. Localhost URLs are only valid while the CSPro application is running.
See also: JSON Serialization Options