CLAS /UI2/CL_JSON

Source Link
Open in ADT

Home
Previous Object: /IWBEP/CX_GATEWAY
Next Object: CL_A4C_BC_FACTORY

Status: RELEASED

Public
Type json TYPE /ui2/cl_json=>json
Type name_mapping TYPE /ui2/cl_json=>name_mapping
Type name_mappings TYPE /ui2/cl_json=>name_mappings
Type ref_tab TYPE /ui2/cl_json=>ref_tab
Type bool TYPE /ui2/cl_json=>bool
Type tribool TYPE /ui2/cl_json=>tribool
Type pretty_name_mode TYPE /ui2/cl_json=>pretty_name_mode
Static Attribute sv_white_space TYPE STRING
Static Attribute mc_bool_types TYPE STRING
Static Attribute mc_bool_3state TYPE STRING
Static Attribute mc_json_type TYPE STRING
Constant pretty_mode TYPE StructureTypetoABAPtodo
Constant c_bool TYPE StructureTypetoABAPtodo
Constant c_tribool TYPE StructureTypetoABAPtodo
Constant mc_key_separator TYPE STRING
Constant version TYPE I
Static Method string_to_xstring
  IMPORTING
    in TYPE STRING
  CHANGING
    out TYPE any
Static Method xstring_to_string
  IMPORTING
    in TYPE any
  RETURNING out TYPE STRING
Static Method raw_to_string
  IMPORTING
    iv_xstring TYPE XSTRING
    iv_encoding TYPE abap_encoding Optional
  RETURNING rv_string TYPE STRING
Static Method string_to_raw
  IMPORTING
    iv_string TYPE STRING
    iv_encoding TYPE abap_encoding Optional
  RETURNING rv_xstring TYPE XSTRING
Static Method dump
  IMPORTING
    data TYPE any
    compress TYPE /ui2/cl_json=>bool Optional
    type_descr TYPE cl_abap_typedescr Optional
    pretty_name TYPE /ui2/cl_json=>pretty_name_mode Optional
    assoc_arrays TYPE /ui2/cl_json=>bool Optional
    ts_as_iso8601 TYPE /ui2/cl_json=>bool Optional
  RETURNING r_json TYPE /ui2/cl_json=>json
Static Method deserialize
  IMPORTING
    json TYPE /ui2/cl_json=>json Optional
    jsonx TYPE XSTRING Optional
    pretty_name TYPE /ui2/cl_json=>pretty_name_mode Optional
    assoc_arrays TYPE /ui2/cl_json=>bool Optional
    assoc_arrays_opt TYPE /ui2/cl_json=>bool Optional
    name_mappings TYPE /ui2/cl_json=>name_mappings Optional
    conversion_exits TYPE /ui2/cl_json=>bool Optional
    hex_as_base64 TYPE /ui2/cl_json=>bool Optional
  CHANGING
    data TYPE any
Static Method serialize
  IMPORTING
    data TYPE any
    compress TYPE /ui2/cl_json=>bool Optional
    name TYPE STRING Optional
    pretty_name TYPE /ui2/cl_json=>pretty_name_mode Optional
    type_descr TYPE cl_abap_typedescr Optional
    assoc_arrays TYPE /ui2/cl_json=>bool Optional
    ts_as_iso8601 TYPE /ui2/cl_json=>bool Optional
    expand_includes TYPE /ui2/cl_json=>bool Optional
    assoc_arrays_opt TYPE /ui2/cl_json=>bool Optional
    numc_as_string TYPE /ui2/cl_json=>bool Optional
    name_mappings TYPE /ui2/cl_json=>name_mappings Optional
    conversion_exits TYPE /ui2/cl_json=>bool Optional
    format_output TYPE /ui2/cl_json=>bool Optional
    hex_as_base64 TYPE /ui2/cl_json=>bool Optional
  RETURNING r_json TYPE /ui2/cl_json=>json
Method deserialize_int
  IMPORTING
    json TYPE /ui2/cl_json=>json Optional
    jsonx TYPE XSTRING Optional
  CHANGING
    data TYPE any
  RAISING cx_sy_move_cast_error
Static Method generate
  IMPORTING
    json TYPE /ui2/cl_json=>json
    pretty_name TYPE /ui2/cl_json=>pretty_name_mode Optional
    name_mappings TYPE /ui2/cl_json=>name_mappings Optional
  RETURNING rr_data TYPE REF TO any
Method serialize_int
  IMPORTING
    data TYPE any
    name TYPE STRING Optional
    type_descr TYPE cl_abap_typedescr Optional
  RETURNING r_json TYPE /ui2/cl_json=>json
Method generate_int
  IMPORTING
    json TYPE /ui2/cl_json=>json
    length TYPE I Optional
  CHANGING
    data TYPE REF TO any
    offset TYPE I Optional
  RAISING cx_sy_move_cast_error
Method constructor
  IMPORTING
    compress TYPE /ui2/cl_json=>bool Optional
    pretty_name TYPE /ui2/cl_json=>pretty_name_mode Optional
    assoc_arrays TYPE /ui2/cl_json=>bool Optional
    ts_as_iso8601 TYPE /ui2/cl_json=>bool Optional
    expand_includes TYPE /ui2/cl_json=>bool Optional
    assoc_arrays_opt TYPE /ui2/cl_json=>bool Optional
    strict_mode TYPE /ui2/cl_json=>bool Optional
    numc_as_string TYPE /ui2/cl_json=>bool Optional
    name_mappings TYPE /ui2/cl_json=>name_mappings Optional
    conversion_exits TYPE /ui2/cl_json=>bool Optional
    format_output TYPE /ui2/cl_json=>bool Optional
    hex_as_base64 TYPE /ui2/cl_json=>bool Optional
    bool_types TYPE STRING Optional
    bool_3state TYPE STRING Optional
    initial_ts TYPE STRING Optional
    initial_date TYPE STRING Optional
    initial_time TYPE STRING Optional
Static Method bool_to_tribool
  IMPORTING
    iv_bool TYPE /ui2/cl_json=>bool
  RETURNING rv_tribool TYPE /ui2/cl_json=>tribool
Static Method tribool_to_bool
  IMPORTING
    iv_tribool TYPE /ui2/cl_json=>tribool
  RETURNING rv_bool TYPE /ui2/cl_json=>bool
Protected
Type t_s_field_cache TYPE /ui2/cl_json=>t_s_field_cache
Type t_s_symbol TYPE /ui2/cl_json=>t_s_symbol
Type t_t_symbol TYPE /ui2/cl_json=>t_t_symbol
Type t_t_field_cache TYPE /ui2/cl_json=>t_t_field_cache
Type name_mappings_ex TYPE /ui2/cl_json=>name_mappings_ex
Type t_s_name_value TYPE /ui2/cl_json=>t_s_name_value
Type t_t_name_value TYPE /ui2/cl_json=>t_t_name_value
Type t_t_json TYPE /ui2/cl_json=>t_t_json
Type t_s_struct_type TYPE /ui2/cl_json=>t_s_struct_type
Type t_t_struct_type TYPE /ui2/cl_json=>t_t_struct_type
Type t_s_struct_cache_res TYPE /ui2/cl_json=>t_s_struct_cache_res
Type t_s_struct_cache TYPE /ui2/cl_json=>t_s_struct_cache
Type t_t_struct_cache TYPE /ui2/cl_json=>t_t_struct_cache
Attribute mv_bool_types TYPE STRING
Attribute mv_bool_3state TYPE STRING
Attribute mv_initial_ts TYPE STRING
Attribute mv_initial_date TYPE STRING
Attribute mv_initial_time TYPE STRING
Attribute mv_compress TYPE /ui2/cl_json=>bool
Attribute mv_pretty_name TYPE /ui2/cl_json=>pretty_name_mode
Attribute mv_assoc_arrays TYPE /ui2/cl_json=>bool
Attribute mv_ts_as_iso8601 TYPE /ui2/cl_json=>bool
Attribute mv_expand_includes TYPE /ui2/cl_json=>bool
Attribute mv_assoc_arrays_opt TYPE /ui2/cl_json=>bool
Attribute mv_strict_mode TYPE /ui2/cl_json=>bool
Attribute mv_numc_as_string TYPE /ui2/cl_json=>bool
Attribute mv_format_output TYPE /ui2/cl_json=>bool
Attribute mv_conversion_exits TYPE /ui2/cl_json=>bool
Attribute mv_hex_as_base64 TYPE /ui2/cl_json=>bool
Attribute mt_name_mappings TYPE /ui2/cl_json=>name_mappings
Attribute mt_name_mappings_ex TYPE /ui2/cl_json=>name_mappings_ex
Attribute mt_struct_type TYPE /ui2/cl_json=>t_t_struct_type
Attribute mt_struct_cache TYPE /ui2/cl_json=>t_t_struct_cache
Static Attribute mc_name_symbols_map TYPE STRING
Static Attribute so_type_s TYPE cl_abap_elemdescr
Static Attribute so_type_f TYPE cl_abap_elemdescr
Static Attribute so_type_p TYPE cl_abap_elemdescr
Static Attribute so_type_i TYPE cl_abap_elemdescr
Static Attribute so_type_b TYPE cl_abap_elemdescr
Static Attribute so_type_t_json TYPE cl_abap_tabledescr
Static Attribute so_type_t_name_value TYPE cl_abap_tabledescr
Constant mc_default_indent TYPE STRING
Static Method unescape
  IMPORTING
    escaped TYPE STRING
  RETURNING unescaped TYPE STRING
Static Method get_convexit_func
  IMPORTING
    elem_descr TYPE cl_abap_elemdescr
    input TYPE ABAP_BOOL Optional
  RETURNING rv_func TYPE STRING
Method dump_symbols
  IMPORTING
    it_symbols TYPE /ui2/cl_json=>t_t_symbol
    opt_array TYPE /ui2/cl_json=>bool Optional
    format_scope TYPE /ui2/cl_json=>bool Optional
    level TYPE I
  RETURNING r_json TYPE /ui2/cl_json=>json
Method get_symbols_struct
  IMPORTING
    type_descr TYPE cl_abap_structdescr
    include_aliases TYPE ABAP_BOOL Optional
    data TYPE REF TO any Optional
    level TYPE I Optional
  RETURNING result TYPE /ui2/cl_json=>t_s_struct_cache_res
Method get_symbols_class
  IMPORTING
    type_descr TYPE cl_abap_classdescr
    object TYPE REF TO object Optional
  RETURNING result TYPE /ui2/cl_json=>t_t_symbol
Method get_symbols
  IMPORTING
    type_descr TYPE cl_abap_typedescr
    data TYPE REF TO any Optional
    object TYPE REF TO object Optional
    include_aliases TYPE ABAP_BOOL Optional
  RETURNING result TYPE /ui2/cl_json=>t_t_symbol
Method get_fields
  IMPORTING
    type_descr TYPE cl_abap_typedescr
    data TYPE REF TO any Optional
    object TYPE REF TO object Optional
  RETURNING rt_fields TYPE /ui2/cl_json=>t_t_field_cache
Method dump_int
  IMPORTING
    data TYPE any
    type_descr TYPE cl_abap_typedescr Optional
    convexit TYPE STRING Optional
    level TYPE I Optional
  RETURNING r_json TYPE /ui2/cl_json=>json
Method is_compressable
  IMPORTING
    type_descr TYPE cl_abap_typedescr
    name TYPE csequence
  RETURNING rv_compress TYPE ABAP_BOOL
Method restore
  IMPORTING
    json TYPE /ui2/cl_json=>json
    length TYPE I
    type_descr TYPE cl_abap_typedescr Optional
    field_cache TYPE /ui2/cl_json=>t_t_field_cache Optional
  CHANGING
    data TYPE any Optional
    offset TYPE I Optional
  RAISING cx_sy_move_cast_error
Method restore_type
  IMPORTING
    json TYPE /ui2/cl_json=>json
    length TYPE I
    type_descr TYPE cl_abap_typedescr Optional
    field_cache TYPE /ui2/cl_json=>t_t_field_cache Optional
    convexit TYPE STRING Optional
  CHANGING
    data TYPE any Optional
    offset TYPE I Optional
  RAISING cx_sy_move_cast_error
Method dump_type
  IMPORTING
    data TYPE any
    type_descr TYPE cl_abap_elemdescr
    convexit TYPE STRING
  RETURNING r_json TYPE /ui2/cl_json=>json
Method dump_type_ex
  IMPORTING
    data TYPE any
  RETURNING r_json TYPE /ui2/cl_json=>json
Method pretty_name_ex
  IMPORTING
    in TYPE csequence
  RETURNING out TYPE STRING
Method generate_int_ex
  IMPORTING
    json TYPE /ui2/cl_json=>json
    length TYPE I
  CHANGING
    data TYPE any
    offset TYPE I
Method pretty_name
  IMPORTING
    in TYPE csequence
  RETURNING out TYPE STRING
Static Method escape
  IMPORTING
    in TYPE any
  RETURNING out TYPE STRING
Static Method edm_datetime_to_ts
  IMPORTING
    ticks TYPE STRING
    offset TYPE STRING Optional
    typekind TYPE abap_typekind
  RETURNING r_data TYPE STRING
Static Method get_indent
  IMPORTING
    level TYPE I Optional
  RETURNING indent TYPE STRING
Method generate_struct
  CHANGING
    fields TYPE /ui2/cl_json=>t_t_name_value
    data TYPE REF TO any

Exists on:
754true
750true
702false

Bug reports and ideas welcome
Made using abaplint.app