• <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
      • Appendix F - Converting Within IMPS or ISSA
      • Appendix G - Errors in Censuses and Surveys
      • Appendix H - File Types
      • Appendix I - JSON Representations
        • Symbols
        • Case
        • JSON Serialization Options
        • CSPro ⇄ JSON Conversions: Binary Data
  • <CSEntry>
  • <CSBatch>
  • <CSTab>
  • <DataManager>
  • <TextView>
  • <TblView>
  • <CSFreq>
  • <CSDeploy>
  • <CSPack>
  • <CSDiff>
  • <CSConcat>
  • <Excel2CSPro>
  • <CSExport>
  • <CSIndex>
  • <CSReFmt>
  • <CSSort>
  • <ParadataConcat>
  • <ParadataViewer>
  • <CSCode>
  • <CSDocument>
  • <CSView>
  • <CSWeb>

JSON Representation of Symbols Overview

Logic Functionality
CSPro symbols can be represented in JSON. Every symbol has metadata, and many symbol types have routines for representing their values in JSON. The following table describes ways to access a symbol's JSON representation or to modify the symbol based on a JSON representation of the value.
Function / ActionDescription
Symbol.getJsonReturns a symbol's metadata and value.
Symbol.getValueJsonReturns a symbol's value.
Symbol.setValueFromJsonModifies a symbol based on a JSON representation of the value.
Logic.getSymbolReturns a symbol's metadata and value.
Logic.getSymbolMetadataReturns a symbol's metadata.
Logic.getSymbolValueReturns a symbol's value.
Logic.setSymbolValueModifies a symbol based on a JSON representation of the value.
JSON Representation of Symbols
The following table describes the value-related serialization routines available for CSPro objects and contains links to the description of the JSON representation for each object. The way that symbols are serialized can be modified at an application-level, or when calling a serialization routine.
Documentation about all JSON representations feature will come in a future release.
ObjectValue -> JSONJSON -> ValueSerialization
numeric✔✔CSPro ⇄ JSON Conversions: Numeric Values
string, alpha✔✔CSPro ⇄ JSON Conversions: String Values
Array✔✔CSPro ⇄ JSON Conversions: Array Object
Audio✔✔CSPro ⇄ JSON Conversions: Audio Object
Block
Dictionary✔
Document✔✔CSPro ⇄ JSON Conversions: Document Object
File✔
Freq✔
function
Geometry✔✔CSPro ⇄ JSON Conversions: Geometry Object
HashMap✔✔CSPro ⇄ JSON Conversions: HashMap Object
Image✔✔CSPro ⇄ JSON Conversions: Image Object
Item
List✔✔CSPro ⇄ JSON Conversions: List Object
Map
Pff
Record
Report✔✔CSPro ⇄ JSON Conversions: Report Object
StringWriter✔✔CSPro ⇄ JSON Conversions: StringWriter Object
SystemApp✔✔
ValueSet✔✔
See also: JSON Serialization Properties, JSON Serialization Options