IBM Support

PI38774: USING DFHJSON TO FORMAT STRINGS WITH NUMBERS FOR THE DATA, QUOTES (") WERE NOT PLACED AROUND THE DATA.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Trying to use DFHJSON to transform according to resources
    generated from a JSON schema.  When transforming strings with
    numbers for the Data, quotes (") were not placed around the
    data.
    .
    Example..
    Sample schema...
    productType": {
     "type":"string",
     "required":false,
     "minimum":1,
     "maximum":2
      },
    "quantity": {
     "type":"string",
     "required":false,
     "minimum":1,
     "maximum":10
      },
    "refillNumber": {
     "type":"string",
     "required":false,
     "minimum":1,
     "maximum":2
                                               },
    .
    After transform result...
    "productType":"03","quantity":30,"refillNumber":"01"
    .
    Note the 30 without quotes.
    
    
    
    
    
    
    
    
    Additional Symptom(s) Search Keyword(s): KIXREVDAM
    

Local fix

  • n/a
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server Liberty Profile for z/OS.            *
    ****************************************************************
    * PROBLEM DESCRIPTION: z/OS Connect's data transformer returns *
    *                      a string with a number for the data     *
    *                      without quotes.                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When using z/OS Connect with its provided transformer, DFHJSON,
    used internally, formats a string entry that contains a number
    as value without quotes. The response schema defines the entry's
    value in question to be of type string; therefore the entry
    value should have been returned as a JSON string (value
    surrounded by quotes).
    
    Example:
    
    Sample schema entry:
    ...
    "refillNumber": {
    "type":"string",
    "required":false,
    "minimum":1,
    "maximum":2
    },
    ...
    
    After transformation, the JSON result is:
    ... "refillNumber":30 ...
    .
    Note the value 30 incorrectly displayed as a JSON integer
    (without quotes).
    

Problem conclusion

  • Code was added to correctly return an entry's value as specified
    in the corresponding schema.
    
    The fix for this APAR is currently targeted for inclusion in fix
    pack 8.5.5.6.  Please refer to the Recommended Updates page for
    delivery information:
    http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI38774

  • Reported component name

    WEBSPHERE FOR Z

  • Reported component ID

    5655I3500

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2015-04-09

  • Closed date

    2015-04-24

  • Last modified date

    2015-04-24

  • APAR is sysrouted FROM one or more of the following:

    PI08908

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    LIBERTY PROF -

  • Fixed component ID

    5655W6514

Applicable component levels

  • R850 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SS7K4U","label":"WebSphere Application Server for z\/OS"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"850","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
28 April 2022