Skip to content

BasicJsonParser does not handle whitespace between [ and { correctly #18911

@System25

Description

@System25

Hi team, there is a bug in BasicJsonParser.

The following JSON is not correctly parsed:
{"id": "393768460", "description": "claimId", "notifications": [ { "code": "003005", "type": "NBV", "description": "Corrosión activa asociada al riesgo de la póliza", "field": "policyNumber", "priority": "", "obfuscated": "false", "resolvingGroup": ["TI","SC","HS","IP","MA","CC"] } ]}

But the following JSON is correctly parsed:
{"id": "393768460", "description": "claimId", "notifications": [{ "code": "003005", "type": "NBV", "description": "Corrosión activa asociada al riesgo de la póliza", "field": "policyNumber", "priority": "", "obfuscated": "false", "resolvingGroup": ["TI","SC","HS","IP","MA","CC"] } ]}

The difference between both JSON are the spaces between the "[" and the "{".

I think that the problem is that the "tokenize" function does not eliminate the leading and trailling spaces.

Best regards!

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions