Skip to content

Wrap JSON.parse with try/catch #38

@aitormagan

Description

@aitormagan

All the calls to JSON.parse must be wrapped by a try / catch statement since the process can raise an exception when the JSON invalid. Until now we have assumed that the server will always return a valid JSON, but this is not always true.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions