Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #19312
| From | doctor@doctor.nl2k.ab.ca (The Doctor) |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: Stripping a JSON of extra characters in PHP |
| Date | 2023-02-07 16:05 +0000 |
| Organization | NetKnow News |
| Message-ID | <trtsrr$19ol$37@gallifrey.nk.ca> (permalink) |
| References | <tre1ei$2lti$75@gallifrey.nk.ca> <k4d3dvFtd5nU1@mid.individual.net> <trs7m0$2pkv$29@gallifrey.nk.ca> <k4efhpF59f9U1@mid.individual.net> |
In article <k4efhpF59f9U1@mid.individual.net>,
Arno Welzel <usenet@arnowelzel.de> wrote:
>The Doctor, 2023-02-07 01:57:
>
>> In article <k4d3dvFtd5nU1@mid.individual.net>,
>> Arno Welzel <usenet@arnowelzel.de> wrote:
>>> The Doctor, 2023-02-06 16:28:
>>>
>>> [...]
>>>> The cart is being derived from a previous form being passed into PHP!
>>>
>>> [...]
>>>> $arr=array(
>>>> 'store_id' => "store3",
>>>> 'api_token' => "yesguy",
>>>> 'checkout_id' => "chktGLFZQtore3",
>>>> 'txn_total' => $_POST['charge_total'],
>>>> 'environment' => "qa",
>>>> 'action' => "preload",
>>>> 'cart' => array(
>>>> (foreach ($_POST['quantity'] as $key => $value) {
>>>
>>> Well - this will result in an array in the JSON named "cart".
>>>
>>>> $cart['items'][] =array(
>>>
>>> And this will also become an array named "items" inside "cart".
>>>
>>> So if you don't want "cart" to be an array in the JSON, then don't
>>> create it this way.
>>>
>>> Learn how to read JSON and that the "punctuation" are not just
>>> characters but have a specific meaning. In this case you created an
>>> array and the JSON will have an array as well - indicated by "[" and "]".
>>>
>>
>> Again basing this on Moneris prereqs.
>
>What is "Moneris prereqs"?
>
>Your OP was: "How can I carefully strip unnecessary punctuation?" I
>tried to explain to you, where these "punctuation" comes from. But if
>you don't accept the facts, then you have to live with it.
>
>
https://developer.moneris.com/livedemo/checkout/preload_req/guide/dotnet
>--
>Arno Welzel
>https://arnowelzel.de
>
--
Member - Liberal International This is doctor@nk.ca Ici doctor@nk.ca
Yahweh, King & country!Never Satan President Republic!Beware AntiChrist rising!
Look at Psalms 14 and 53 on Atheism https://www.empire.kred/ROOTNK?t=94a1f39b
Extremism is for those who love judging, and care nothing for accuracy. -unknown Beware https://mindspring.com
Back to comp.lang.php | Previous | Next — Previous in thread | Find similar
Stripping a JSON of extra characters in PHP doctor@doctor.nl2k.ab.ca (The Doctor) - 2023-02-01 15:45 +0000
Re: Stripping a JSON of extra characters in PHP Ben Bacarisse <ben.usenet@bsb.me.uk> - 2023-02-01 16:09 +0000
Re: Stripping a JSON of extra characters in PHP Arno Welzel <usenet@arnowelzel.de> - 2023-02-03 18:12 +0100
Re: Stripping a JSON of extra characters in PHP Ben Bacarisse <ben.usenet@bsb.me.uk> - 2023-02-03 23:56 +0000
Re: Stripping a JSON of extra characters in PHP Arno Welzel <usenet@arnowelzel.de> - 2023-02-05 00:28 +0100
Re: Stripping a JSON of extra characters in PHP Ben Bacarisse <ben.usenet@bsb.me.uk> - 2023-02-05 00:06 +0000
Re: Stripping a JSON of extra characters in PHP Arno Welzel <usenet@arnowelzel.de> - 2023-02-05 14:17 +0100
Re: Stripping a JSON of extra characters in PHP Ben Bacarisse <ben.usenet@bsb.me.uk> - 2023-02-05 20:58 +0000
Re: Stripping a JSON of extra characters in PHP Arno Welzel <usenet@arnowelzel.de> - 2023-02-05 23:38 +0100
Re: Stripping a JSON of extra characters in PHP "J.O. Aho" <user@example.net> - 2023-02-04 11:23 +0100
Re: Stripping a JSON of extra characters in PHP Arno Welzel <usenet@arnowelzel.de> - 2023-02-05 00:30 +0100
Re: Stripping a JSON of extra characters in PHP Ben Bacarisse <ben.usenet@bsb.me.uk> - 2023-02-04 23:44 +0000
Re: Stripping a JSON of extra characters in PHP "J.O. Aho" <user@example.net> - 2023-02-05 16:14 +0100
Re: Stripping a JSON of extra characters in PHP doctor@doctor.nl2k.ab.ca (The Doctor) - 2023-02-06 01:31 +0000
Re: Stripping a JSON of extra characters in PHP "J.O. Aho" <user@example.net> - 2023-02-06 08:14 +0100
Re: Stripping a JSON of extra characters in PHP doctor@doctor.nl2k.ab.ca (The Doctor) - 2023-02-06 15:28 +0000
Re: Stripping a JSON of extra characters in PHP "J.O. Aho" <user@example.net> - 2023-02-06 18:14 +0100
Re: Stripping a JSON of extra characters in PHP doctor@doctor.nl2k.ab.ca (The Doctor) - 2023-02-07 00:56 +0000
Re: Stripping a JSON of extra characters in PHP Arno Welzel <usenet@arnowelzel.de> - 2023-02-06 20:40 +0100
Re: Stripping a JSON of extra characters in PHP doctor@doctor.nl2k.ab.ca (The Doctor) - 2023-02-07 00:57 +0000
Re: Stripping a JSON of extra characters in PHP doctor@doctor.nl2k.ab.ca (The Doctor) - 2023-02-07 01:28 +0000
Re: Stripping a JSON of extra characters in PHP Arno Welzel <usenet@arnowelzel.de> - 2023-02-07 09:16 +0100
Re: Stripping a JSON of extra characters in PHP Arno Welzel <usenet@arnowelzel.de> - 2023-02-07 09:31 +0100
Re: Stripping a JSON of extra characters in PHP doctor@doctor.nl2k.ab.ca (The Doctor) - 2023-02-07 16:10 +0000
Re: Stripping a JSON of extra characters in PHP Arno Welzel <usenet@arnowelzel.de> - 2023-02-09 20:22 +0100
Re: Stripping a JSON of extra characters in PHP doctor@doctor.nl2k.ab.ca (The Doctor) - 2023-02-09 21:01 +0000
Re: Stripping a JSON of extra characters in PHP "J.O. Aho" <user@example.net> - 2023-02-10 11:49 +0100
Re: Stripping a JSON of extra characters in PHP doctor@doctor.nl2k.ab.ca (The Doctor) - 2023-02-10 14:39 +0000
Re: Stripping a JSON of extra characters in PHP doctor@doctor.nl2k.ab.ca (The Doctor) - 2023-02-07 16:05 +0000
Re: Stripping a JSON of extra characters in PHP Arno Welzel <usenet@arnowelzel.de> - 2023-02-07 09:13 +0100
Re: Stripping a JSON of extra characters in PHP doctor@doctor.nl2k.ab.ca (The Doctor) - 2023-02-07 16:05 +0000
csiph-web