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 BAPI_SIGN
Type tribool TYPE BAPI_SIGN
Type pretty_name_mode TYPE BAPI_SIGN
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_ENCOD Optional
  RETURNING rv_string TYPE STRING
Static Method string_to_raw
  IMPORTING
    iv_string TYPE STRING
    iv_encoding TYPE ABAP_ENCOD Optional
  RETURNING rv_xstring TYPE XSTRING
Static Method dump
  IMPORTING
    data TYPE any
    compress TYPE BAPI_SIGN Optional
    type_descr TYPE cl_abap_typedescr Optional
    pretty_name TYPE BAPI_SIGN Optional
    assoc_arrays TYPE BAPI_SIGN Optional
    ts_as_iso8601 TYPE BAPI_SIGN 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 BAPI_SIGN Optional
    assoc_arrays TYPE BAPI_SIGN Optional
    assoc_arrays_opt TYPE BAPI_SIGN Optional
    name_mappings TYPE /ui2/cl_json=>name_mappings Optional
    conversion_exits TYPE BAPI_SIGN Optional
  CHANGING
    data TYPE any
Static Method serialize
  IMPORTING
    data TYPE any
    compress TYPE BAPI_SIGN Optional
    name TYPE STRING Optional
    pretty_name TYPE BAPI_SIGN Optional
    type_descr TYPE cl_abap_typedescr Optional
    assoc_arrays TYPE BAPI_SIGN Optional
    ts_as_iso8601 TYPE BAPI_SIGN Optional
    expand_includes TYPE BAPI_SIGN Optional
    assoc_arrays_opt TYPE BAPI_SIGN Optional
    numc_as_string TYPE BAPI_SIGN Optional
    name_mappings TYPE /ui2/cl_json=>name_mappings Optional
    conversion_exits TYPE BAPI_SIGN 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 BAPI_SIGN 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
  RETURNING rr_data TYPE REF TO any
  RAISING cx_sy_move_cast_error
Method constructor
  IMPORTING
    compress TYPE BAPI_SIGN Optional
    pretty_name TYPE BAPI_SIGN Optional
    assoc_arrays TYPE BAPI_SIGN Optional
    ts_as_iso8601 TYPE BAPI_SIGN Optional
    expand_includes TYPE BAPI_SIGN Optional
    assoc_arrays_opt TYPE BAPI_SIGN Optional
    strict_mode TYPE BAPI_SIGN Optional
    numc_as_string TYPE BAPI_SIGN Optional
    name_mappings TYPE /ui2/cl_json=>name_mappings Optional
    conversion_exits TYPE BAPI_SIGN Optional
Static Method bool_to_tribool
  IMPORTING
    iv_bool TYPE BAPI_SIGN
  RETURNING rv_tribool TYPE BAPI_SIGN
Static Method tribool_to_bool
  IMPORTING
    iv_tribool TYPE BAPI_SIGN
  RETURNING rv_bool TYPE BAPI_SIGN
Protected
Type t_s_symbol TYPE /ui2/cl_json=>t_s_symbol
Type t_t_symbol TYPE /ui2/cl_json=>t_t_symbol
Type t_s_field_cache TYPE /ui2/cl_json=>t_s_field_cache
Type t_t_field_cache TYPE /ui2/cl_json=>t_t_field_cache
Type name_mappings_ex TYPE /ui2/cl_json=>name_mappings_ex
Attribute mv_compress TYPE BAPI_SIGN
Attribute mv_pretty_name TYPE BAPI_SIGN
Attribute mv_assoc_arrays TYPE BAPI_SIGN
Attribute mv_ts_as_iso8601 TYPE BAPI_SIGN
Attribute mt_name_mappings TYPE /ui2/cl_json=>name_mappings
Attribute mt_name_mappings_ex TYPE /ui2/cl_json=>name_mappings_ex
Attribute mv_expand_includes TYPE BAPI_SIGN
Attribute mv_assoc_arrays_opt TYPE BAPI_SIGN
Attribute mv_strict_mode TYPE BAPI_SIGN
Attribute mv_numc_as_string TYPE BAPI_SIGN
Attribute mv_conversion_exits TYPE BAPI_SIGN
Static Attribute mc_name_symbols_map 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
  RETURNING r_json TYPE /ui2/cl_json=>json
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
  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

Exists on:
754true
750true
702false

Bug reports and ideas welcome
Made using abaplint.app