json_decode() failed when handling invalid JSON response

Created on 4 May 2023, over 1 year ago
Updated 19 June 2024, 6 months ago

Problem/Motivation

json_decode() returns NULL when handling JSON response with special characters.

        $json = $response->getBody()->getContents();
        $values = json_decode($json, TRUE);

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇧🇾Belarus farid.muborakshoev

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024