天天看点

new ABAP json parser

Created by Wang, Jerry, last modified on Dec 20, 2014

DATA(json) = cl_abap_codepage=>convert_to( iv_json_str ). - exception

DATA(reader) = cl_sxml_string_reader=>create( json ).

DATA(writer) = CAST if_sxml_writer( cl_sxml_string_writer=>create( ) ). - exception

array->object->str(has one attribute named "name" )->

new ABAP json parser
new ABAP json parser
new ABAP json parser
new ABAP json parser

attribute name = name, value = id

then again value node, close. num close

then again str open element, one attribute with name = "name"

then value node value = 321102399072784385 then close

then open element name = str, attribute name = "name", value = "text".

new ABAP json parser
new ABAP json parser