Skip to content

Check json for errors #74

Description

@CrazyTapok-bit

The json_decode function may issue an error if the string passed is not really json, or json but contains syntax errors. Therefore, it is necessary to finalize the handler and check for errors

$assoc = json_decode($data, true);

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions