Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | CLASS ltcl_test_mappers DEFINITION FINAL FOR TESTING DURATION SHORT RISK LEVEL HARMLESS. PRIVATE SECTION. METHODS: from_json_to_json FOR TESTING RAISING zcx_abapgit_ajson_error, to_abap FOR TESTING RAISING zcx_abapgit_ajson_error, to_json FOR TESTING RAISING zcx_abapgit_ajson_error, to_json_nested_struc FOR TESTING RAISING zcx_abapgit_ajson_error, to_json_nested_table FOR TESTING RAISING zcx_abapgit_ajson_error, to_json_first_lower FOR TESTING RAISING zcx_abapgit_ajson_error. METHODS: to_snake FOR TESTING RAISING zcx_abapgit_ajson_error, to_camel FOR TESTING RAISING zcx_abapgit_ajson_error, to_camel_1st_upper FOR TESTING RAISING zcx_abapgit_ajson_error, rename_by_attr FOR TESTING RAISING zcx_abapgit_ajson_error, rename_by_path FOR TESTING RAISING zcx_abapgit_ajson_error, rename_by_pattern FOR TESTING RAISING zcx_abapgit_ajson_error, compound_mapper FOR TESTING RAISING zcx_abapgit_ajson_error, test_to_upper FOR TESTING RAISING zcx_abapgit_ajson_error, test_to_lower FOR TESTING RAISING zcx_abapgit_ajson_error. ENDCLASS. CLASS ltcl_test_mappers IMPLEMENTATION. METHOD from_json_to_json. DATA: lo_ajson TYPE REF TO zcl_abapgit_ajson. lo_ajson = zcl_abapgit_ajson=>parse( iv_json = `{"fieldData":"field_value"}` ii_custom_mapping = zcl_abapgit_ajson_mapping=>create_camel_case( iv_first_json_upper = abap_false ) ). lo_ajson->set_string( iv_path = `/fieldData` iv_val = 'E' ). cl_abap_unit_assert=>assert_equals( act = lo_ajson->stringify( ) exp = '{"fieldData":"E"}' ). ENDMETHOD. METHOD to_abap. DATA: lo_ajson TYPE REF TO zcl_abapgit_ajson, li_mapping TYPE REF TO zif_abapgit_ajson_mapping. DATA: BEGIN OF ls_result, field_data TYPE string, END OF ls_result. li_mapping = zcl_abapgit_ajson_mapping=>create_camel_case( ). lo_ajson = zcl_abapgit_ajson=>parse( iv_json = '{"FieldData":"field_value"}' ii_custom_mapping = li_mapping ). lo_ajson->to_abap( IMPORTING ev_container = ls_result ). cl_abap_unit_assert=>assert_equals( act = ls_result-field_data exp = 'field_value' ). ENDMETHOD. METHOD to_json. DATA: lo_ajson TYPE REF TO zcl_abapgit_ajson, li_mapping TYPE REF TO zif_abapgit_ajson_mapping. DATA: BEGIN OF ls_result, field_data TYPE string, END OF ls_result. li_mapping = zcl_abapgit_ajson_mapping=>create_camel_case( iv_first_json_upper = abap_false ). ls_result-field_data = 'field_value'. lo_ajson = zcl_abapgit_ajson=>create_empty( ii_custom_mapping = li_mapping ). lo_ajson->set( iv_path = '/' iv_val = ls_result ). cl_abap_unit_assert=>assert_equals( act = lo_ajson->stringify( ) exp = '{"fieldData":"field_value"}' ). ENDMETHOD. METHOD to_json_nested_struc. DATA: lo_ajson TYPE REF TO zcl_abapgit_ajson, li_mapping TYPE REF TO zif_abapgit_ajson_mapping. DATA: BEGIN OF ls_result, field_data TYPE string, BEGIN OF struc_data, field_more TYPE string, END OF struc_data, END OF ls_result. li_mapping = zcl_abapgit_ajson_mapping=>create_camel_case( iv_first_json_upper = abap_false ). ls_result-field_data = 'field_value'. ls_result-struc_data-field_more = 'field_more'. lo_ajson = zcl_abapgit_ajson=>create_empty( ii_custom_mapping = li_mapping ). lo_ajson->set( iv_path = '/' iv_val = ls_result ). cl_abap_unit_assert=>assert_equals( act = lo_ajson->stringify( ) exp = '{"fieldData":"field_value","strucData":{"fieldMore":"field_more"}}' ). ENDMETHOD. METHOD to_json_nested_table. DATA: lo_ajson TYPE REF TO zcl_abapgit_ajson, li_mapping TYPE REF TO zif_abapgit_ajson_mapping. DATA: lv_value TYPE string, BEGIN OF ls_result, field_data TYPE string, BEGIN OF struc_data, field_more TYPE string_table, END OF struc_data, END OF ls_result. li_mapping = zcl_abapgit_ajson_mapping=>create_camel_case( iv_first_json_upper = abap_false ). ls_result-field_data = 'field_value'. lv_value = 'field_more'. INSERT lv_value INTO TABLE ls_result-struc_data-field_more. lo_ajson = zcl_abapgit_ajson=>create_empty( ii_custom_mapping = li_mapping ). lo_ajson->set( iv_path = '/' iv_val = ls_result ). cl_abap_unit_assert=>assert_equals( act = lo_ajson->stringify( ) exp = '{"fieldData":"field_value","strucData":{"fieldMore":["field_more"]}}' ). ENDMETHOD. METHOD to_json_first_lower. DATA: lo_ajson TYPE REF TO zcl_abapgit_ajson, li_mapping TYPE REF TO zif_abapgit_ajson_mapping. DATA: BEGIN OF ls_result, field_data TYPE string, END OF ls_result. li_mapping = zcl_abapgit_ajson_mapping=>create_camel_case( ). ls_result-field_data = 'field_value'. lo_ajson = zcl_abapgit_ajson=>create_empty( ii_custom_mapping = li_mapping ). lo_ajson->set( iv_path = '/' iv_val = ls_result ). cl_abap_unit_assert=>assert_equals( act = lo_ajson->stringify( ) exp = '{"FieldData":"field_value"}' ). ENDMETHOD. METHOD test_to_upper. cl_abap_unit_assert=>assert_equals( act = zcl_abapgit_ajson=>create_from( ii_source_json = zcl_abapgit_ajson=>parse( '{"a":1,"b":{"c":2}}' ) ii_mapper = zcl_abapgit_ajson_mapping=>create_upper_case( ) )->stringify( ) exp = '{"A":1,"B":{"C":2}}' ). cl_abap_unit_assert=>assert_equals( act = zcl_abapgit_ajson=>parse( '{"a":1,"b":{"c":2}}' )->map( zcl_abapgit_ajson_mapping=>create_upper_case( ) )->stringify( ) exp = '{"A":1,"B":{"C":2}}' ). ENDMETHOD. METHOD test_to_lower. cl_abap_unit_assert=>assert_equals( act = zcl_abapgit_ajson=>create_from( ii_source_json = zcl_abapgit_ajson=>parse( '{"A":1,"B":{"C":2}}' ) ii_mapper = zcl_abapgit_ajson_mapping=>create_lower_case( ) )->stringify( ) exp = '{"a":1,"b":{"c":2}}' ). cl_abap_unit_assert=>assert_equals( act = zcl_abapgit_ajson=>parse( '{"A":1,"B":{"C":2}}' )->map( zcl_abapgit_ajson_mapping=>create_lower_case( ) )->stringify( ) exp = '{"a":1,"b":{"c":2}}' ). ENDMETHOD. METHOD rename_by_attr. DATA lt_map TYPE zif_abapgit_ajson_mapping=>tty_rename_map. FIELD-SYMBOLS <i> LIKE LINE OF lt_map. APPEND INITIAL LINE TO lt_map ASSIGNING <i>. <i>-from = 'a'. <i>-to = 'x'. APPEND INITIAL LINE TO lt_map ASSIGNING <i>. <i>-from = 'c'. <i>-to = 'y'. APPEND INITIAL LINE TO lt_map ASSIGNING <i>. <i>-from = 'd'. <i>-to = 'z'. cl_abap_unit_assert=>assert_equals( act = zcl_abapgit_ajson=>create_from( ii_source_json = zcl_abapgit_ajson=>parse( '{"a":1,"b":{"c":2},"d":{"e":3}}' ) ii_mapper = zcl_abapgit_ajson_mapping=>create_rename( lt_map ) )->stringify( ) exp = '{"b":{"y":2},"x":1,"z":{"e":3}}' ). ENDMETHOD. METHOD rename_by_path. DATA lt_map TYPE zif_abapgit_ajson_mapping=>tty_rename_map. FIELD-SYMBOLS <i> LIKE LINE OF lt_map. APPEND INITIAL LINE TO lt_map ASSIGNING <i>. <i>-from = '/b/a'. <i>-to = 'x'. cl_abap_unit_assert=>assert_equals( act = zcl_abapgit_ajson=>create_from( ii_source_json = zcl_abapgit_ajson=>parse( '{"a":1,"b":{"a":2},"c":{"a":3}}' ) ii_mapper = zcl_abapgit_ajson_mapping=>create_rename( it_rename_map = lt_map iv_rename_by = zcl_abapgit_ajson_mapping=>rename_by-full_path ) )->stringify( ) exp = '{"a":1,"b":{"x":2},"c":{"a":3}}' ). ENDMETHOD. METHOD rename_by_pattern. DATA lt_map TYPE zif_abapgit_ajson_mapping=>tty_rename_map. FIELD-SYMBOLS <i> LIKE LINE OF lt_map. APPEND INITIAL LINE TO lt_map ASSIGNING <i>. <i>-from = '/*/this*'. <i>-to = 'x'. cl_abap_unit_assert=>assert_equals( act = zcl_abapgit_ajson=>create_from( ii_source_json = zcl_abapgit_ajson=>parse( '{"andthisnot":1,"b":{"thisone":2},"c":{"a":3}}' ) ii_mapper = zcl_abapgit_ajson_mapping=>create_rename( it_rename_map = lt_map iv_rename_by = zcl_abapgit_ajson_mapping=>rename_by-pattern ) )->stringify( ) exp = '{"andthisnot":1,"b":{"x":2},"c":{"a":3}}' ). ENDMETHOD. METHOD compound_mapper. DATA lt_map TYPE zif_abapgit_ajson_mapping=>tty_rename_map. FIELD-SYMBOLS <i> LIKE LINE OF lt_map. APPEND INITIAL LINE TO lt_map ASSIGNING <i>. <i>-from = '/b/a'. <i>-to = 'x'. cl_abap_unit_assert=>assert_equals( act = zcl_abapgit_ajson=>create_from( ii_source_json = zcl_abapgit_ajson=>parse( '{"a":1,"b":{"a":2},"c":{"a":3}}' ) ii_mapper = zcl_abapgit_ajson_mapping=>create_compound_mapper( ii_mapper1 = zcl_abapgit_ajson_mapping=>create_rename( it_rename_map = lt_map iv_rename_by = zcl_abapgit_ajson_mapping=>rename_by-full_path ) ii_mapper2 = zcl_abapgit_ajson_mapping=>create_upper_case( ) ) )->stringify( ) exp = '{"A":1,"B":{"X":2},"C":{"A":3}}' ). ENDMETHOD. METHOD to_snake. cl_abap_unit_assert=>assert_equals( act = zcl_abapgit_ajson=>create_from( ii_source_json = zcl_abapgit_ajson=>parse( '{"aB":1,"BbC":2,"cD":{"xY":3},"ZZ":4}' ) ii_mapper = zcl_abapgit_ajson_mapping=>create_to_snake_case( ) )->stringify( ) exp = '{"a_b":1,"bb_c":2,"c_d":{"x_y":3},"zz":4}' ). ENDMETHOD. METHOD to_camel. cl_abap_unit_assert=>assert_equals( act = zcl_abapgit_ajson=>create_from( ii_source_json = zcl_abapgit_ajson=>parse( '{"a_b":1,"bb_c":2,"c_d":{"x_y":3},"zz":4}' ) ii_mapper = zcl_abapgit_ajson_mapping=>create_to_camel_case( ) )->stringify( ) exp = '{"aB":1,"bbC":2,"cD":{"xY":3},"zz":4}' ). " Forced underscore cl_abap_unit_assert=>assert_equals( act = zcl_abapgit_ajson=>create_from( ii_source_json = zcl_abapgit_ajson=>parse( '{"a__b":1}' ) ii_mapper = zcl_abapgit_ajson_mapping=>create_to_camel_case( ) )->stringify( ) exp = '{"a_b":1}' ). ENDMETHOD. METHOD to_camel_1st_upper. cl_abap_unit_assert=>assert_equals( act = zcl_abapgit_ajson=>create_from( ii_source_json = zcl_abapgit_ajson=>parse( '{"aj_bc":1,"bb_c":2,"c_d":{"xq_yq":3},"zz":4}' ) ii_mapper = zcl_abapgit_ajson_mapping=>create_to_camel_case( iv_first_json_upper = abap_true ) )->stringify( ) exp = '{"AjBc":1,"BbC":2,"CD":{"XqYq":3},"Zz":4}' ). ENDMETHOD. ENDCLASS. CLASS ltcl_fields DEFINITION FINAL FOR TESTING DURATION SHORT RISK LEVEL HARMLESS. PRIVATE SECTION. METHODS: to_json_without_path FOR TESTING RAISING zcx_abapgit_ajson_error, to_json_with_path FOR TESTING RAISING zcx_abapgit_ajson_error, to_abap FOR TESTING RAISING zcx_abapgit_ajson_error, to_json IMPORTING iv_path TYPE string RETURNING VALUE(rv_result) TYPE string RAISING zcx_abapgit_ajson_error. ENDCLASS. CLASS ltcl_fields IMPLEMENTATION. METHOD to_abap. DATA: lo_ajson TYPE REF TO zcl_abapgit_ajson, li_mapping TYPE REF TO zif_abapgit_ajson_mapping, lt_mapping_fields TYPE zif_abapgit_ajson_mapping=>ty_mapping_fields, ls_mapping_field LIKE LINE OF lt_mapping_fields. DATA: BEGIN OF ls_result, abap_field TYPE string, field TYPE string, END OF ls_result. CLEAR ls_mapping_field. ls_mapping_field-abap = 'ABAP_FIELD'. ls_mapping_field-json = 'json.field'. INSERT ls_mapping_field INTO TABLE lt_mapping_fields. li_mapping = zcl_abapgit_ajson_mapping=>create_field_mapping( lt_mapping_fields ). lo_ajson = zcl_abapgit_ajson=>parse( iv_json = '{"field":"value","json.field":"field_value"}' ii_custom_mapping = li_mapping ). lo_ajson->to_abap( IMPORTING ev_container = ls_result ). cl_abap_unit_assert=>assert_equals( act = ls_result-abap_field exp = 'field_value' ). cl_abap_unit_assert=>assert_equals( act = ls_result-field exp = 'value' ). ENDMETHOD. METHOD to_json_without_path. cl_abap_unit_assert=>assert_equals( act = to_json( `/` ) exp = '{"field":"value","json.field":"field_value"}' ). ENDMETHOD. METHOD to_json_with_path. cl_abap_unit_assert=>assert_equals( act = to_json( '/samplePath' ) exp = '{"samplePath":{"field":"value","json.field":"field_value"}}' ). ENDMETHOD. METHOD to_json. DATA: lo_ajson TYPE REF TO zcl_abapgit_ajson, li_mapping TYPE REF TO zif_abapgit_ajson_mapping, lt_mapping_fields TYPE zif_abapgit_ajson_mapping=>ty_mapping_fields, ls_mapping_field LIKE LINE OF lt_mapping_fields. DATA: BEGIN OF ls_result, abap_field TYPE string, field TYPE string, END OF ls_result. CLEAR ls_mapping_field. ls_mapping_field-abap = 'ABAP_FIELD'. ls_mapping_field-json = 'json.field'. INSERT ls_mapping_field INTO TABLE lt_mapping_fields. li_mapping = zcl_abapgit_ajson_mapping=>create_field_mapping( lt_mapping_fields ). ls_result-abap_field = 'field_value'. ls_result-field = 'value'. lo_ajson = zcl_abapgit_ajson=>create_empty( ii_custom_mapping = li_mapping ). lo_ajson->set( iv_path = iv_path iv_val = ls_result ). rv_result = lo_ajson->stringify( ). ENDMETHOD. ENDCLASS. CLASS ltcl_to_lower DEFINITION FINAL FOR TESTING DURATION SHORT RISK LEVEL HARMLESS. PRIVATE SECTION. METHODS: to_json FOR TESTING RAISING zcx_abapgit_ajson_error. ENDCLASS. CLASS ltcl_to_lower IMPLEMENTATION. METHOD to_json. DATA: lo_ajson TYPE REF TO zcl_abapgit_ajson, li_mapping TYPE REF TO zif_abapgit_ajson_mapping. DATA: BEGIN OF ls_result, field_data TYPE string, END OF ls_result. li_mapping = zcl_abapgit_ajson_mapping=>create_lower_case( ). ls_result-field_data = 'field_value'. lo_ajson = zcl_abapgit_ajson=>create_empty( ii_custom_mapping = li_mapping ). lo_ajson->set( iv_path = '/' iv_val = ls_result ). cl_abap_unit_assert=>assert_equals( act = lo_ajson->stringify( ) exp = '{"field_data":"field_value"}' ). ENDMETHOD. ENDCLASS. CLASS ltcl_to_upper DEFINITION FINAL FOR TESTING DURATION SHORT RISK LEVEL HARMLESS. PRIVATE SECTION. METHODS: to_json FOR TESTING RAISING zcx_abapgit_ajson_error. ENDCLASS. CLASS ltcl_to_upper IMPLEMENTATION. METHOD to_json. DATA: lo_ajson TYPE REF TO zcl_abapgit_ajson, li_mapping TYPE REF TO zif_abapgit_ajson_mapping. DATA: BEGIN OF ls_result, field_data TYPE string, END OF ls_result. li_mapping = zcl_abapgit_ajson_mapping=>create_upper_case( ). ls_result-field_data = 'field_value'. lo_ajson = zcl_abapgit_ajson=>create_empty( ii_custom_mapping = li_mapping ). lo_ajson->set( iv_path = '/' iv_val = ls_result ). cl_abap_unit_assert=>assert_equals( act = lo_ajson->stringify( ) exp = '{"FIELD_DATA":"field_value"}' ). ENDMETHOD. ENDCLASS. |