title: /ui2/cl_json=>deserialize doesn't fill structure
body: <p>I have two types of JSON: <code>result</code> and <code>error</code>.</p>
  
  <p>I'm trying to deserialize these two JSON to my internal structure, but there's a problem. </p>
  
  <p>Only for <code>result</code> the function works correctly, for <code>error</code> the structure is always blank.</p>
  
  <p>Can anybody help me to solve my problem or indicate my mistake?</p>
  
  <p>Here are my JSON:</p>
  
  <pre><code>{
      "result": [
          {
              "to": "to_somebody",
              "id": "some_id",
              "code": "some_code"
          }
      ]
  }
  
  {
      "error": {
          "name": "some_name",
          "date": [],
          "id": "11",
          "descr": "Unknown error"
      },
      "result": null
  }
  </code></pre>
  
  <p>Here is my ABAP code (there's a screen to enter the JSON):</p>
  
  <pre><code>DATA go_textedit TYPE REF TO cl_gui_textedit.
  PARAMETERS: json TYPE string.
  
  AT SELECTION-SCREEN OUTPUT.
    IF go_textedit IS NOT BOUND.
      CREATE OBJECT go_textedit
        EXPORTING
          parent = cl_gui_container=&gt;screen0.
      go_textedit-&gt;set_textstream( json ).
    ENDIF.
  
  AT SELECTION-SCREEN.
    go_textedit-&gt;get_textstream( IMPORTING text = json ).
    cl_gui_cfw=&gt;flush( ).
  TYPES: BEGIN OF stt_result,
               to       TYPE string,
               id       TYPE string,
               code     TYPE string,
             END OF stt_result.
  
  TYPES: BEGIN OF stt_error,
               name   TYPE string,
               date   TYPE string,
               id     TYPE string,
               descr  TYPE string,
               result TYPE string,
             END OF stt_error.
  
  DATA: BEGIN OF ls_response_result,
         result TYPE STANDARD TABLE OF stt_result,
         error  TYPE STANDARD TABLE OF stt_error,
  END OF ls_response_result.
  
  /ui2/cl_json=&gt;deserialize( EXPORTING json        = lv_cdata
                                       pretty_name = /ui2/cl_json=&gt;pretty_mode-camel_case
                             CHANGING  data        = ls_response_result ).
  </code></pre>