IBM Support

PI71979: DFHJUGEN IS BUILDING INVALID JSON BY ADDING ADDITIONAL COMMAS WHERE THERE SHOULDN'T BE ANY.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as duplicate of another APAR.

Error description

  • The invalid JSON that DFHJUGEN builds looks like this:
    "Fields1": {
     "Fields2": false,
     "Field3": {
      "Field4": "0 1234",
     },
    },
    
    The extra commas after false and 01234 are invalid. This seems
    to be caused by the callers of match_template_variable being
    too presumptive in assuming that a comma is needed before
    ensuring there is definitely an object to follow.
    
    Additional Symptom(s) Search Keyword(s): KIXREVEPH
    

Local fix

  • N/A
    

Problem summary

Problem conclusion

Temporary fix

Comments

  • This APAR was raised to address the following problem:
    The DFHJS2LS assistant is run to create a WSBIND file for a web
    service, or JSBIND file for use with the DFHJSON linkable
    interface.  The JSON schema used as input contains optional
    fields.
    At runtime, the native (non-Java) JSON generator is used to
    create JSON from application data using the bind file created
    previously.  One or more optional fields are not present in the
    application data (indicated by the count field being zero).
    However, DFHPIJG incorrectly assumes it will be present in the
    generated data, so outputs a comma after the preceeding element,
    causing the JSON to be invalid.
    This APAR is being closed DUP, because the fix was included in
    PI67641.
    

APAR Information

  • APAR number

    PI71979

  • Reported component name

    CICS TS Z/OS V5

  • Reported component ID

    5655Y0400

  • Reported release

    000

  • Status

    CLOSED DUB

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-11-08

  • Closed date

    2017-02-17

  • Last modified date

    2017-02-17

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

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

Fix information

Applicable component levels

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSGMGV","label":"CICS Transaction Server"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"5.3","Edition":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}},{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG19M","label":"APARs - z\/OS environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"5.3","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
17 February 2017