In some situations, pass JSON_THROW_ON_ERROR when decoding JSON

Created on 21 October 2022, about 2 years ago
Updated 17 April 2023, over 1 year ago

Problem/Motivation

In Package Manager (and Automatic Updates), we decode a lot of JSON. In some situations, it might make sense to use the JSON_THROW_ON_ERROR flag.

Proposed resolution

Let's go through all of our calls to Json::decode() and json_decode() and decide, on a case-by-case basis, if we should pass the JSON_THROW_ON_ERROR flag (which necessitates using json_decode).

🐛 Bug report
Status

Postponed: needs info

Version

3.0

Component

Code

Created by

🇮🇳India yash.rode pune

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024