T
T
Triglav772019-11-15 15:25:08
PHP
Triglav77, 2019-11-15 15:25:08

How to remake json config?

There is a json like this
[{ "cards": {"status1": null, "status2": null, "status3": null}, {"status4": null, "status5": null, "status6": null}} ]
how to convert it to this form using php
{ "cards": [{"status1": null, "status2": null, "status3": null}, {"status4": null, "status5": null, "status6" : null}]}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
gian_tiaga, 2019-11-15
@Triglav77

json_decode
Do whatever you want with the array
json_encode

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question