IBM Support

SyntaxError: JSON.parse: unexpected character when processing JSON files

Question & Answer


Question

Why am I receiving a parsing error while processing my JavaScript Object Notation (JSON) files? When migrating to OSGi bundles in CICS Transaction Server for z/OS (CICS TS) V5.2, a parsing error occurs while processing JSON files. Looking at the resulting characters, the values are diaeresis and Y acute, where what is expected are left and right square brackets.

The error I see in the log is:

SyntaxError: JSON.parse: unexpected character at line 1 column 13 of the JSON data

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSGMGV","label":"CICS Transaction Server"},"Platform":[{"code":"PF035","label":"z\/OS"}],"Component":"Java","Version":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

To view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use the link to actual document below to access the full document. You will be asked to log on if you are not already logged in. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Product Synonym

CICS/TS CICSTS CICS TS CICS Transaction Server

Document Information

More support for:
CICS Transaction Server

Operating system(s):
z/OS

Document number:
6145221

Modified date:
14 December 2016

UID

dwa1328248

Manage My Notification Subscriptions