Re: Stripping a JSON of extra characters in PHP

Ben Bacarisse <[email protected]> Fri, 03 Feb 2023 23:56:57 +0000
Newsgroups comp.lang.php
Organization A noiseless patient Spider
Message-ID <[email protected]>
Arno Welzel <[email protected]> writes:

> Ben Bacarisse, 2023-02-01 17:09:
>
>> [email protected] (The Doctor) writes:
>> 
>>> From https://developer.moneris.com/livedemo/checkout/preload_req/guide/dotnet
>>>
>>> I need a JSON as follows:
>>>
>>> {
>>> 	"store_id":"moneris",
>>> 	"api_token":"hurgle",
>> 
>> What you pasted as what you "need" is not even valid JSON and has a huge
>> number of pointless spaces in it making it almost unreadable (in my news
>> client).
>
> First of all - to all of you: learn how to use validators and
> beautifiers.

You think I don't?  Now that you've got that off your chest, what's the
second thing we -- all of us -- need to learn? ;-)

-- 
Ben.