Answers for "remove space and line from json in php"

PHP
0

remove space and line from json in php

$before = '{ "key": "value with whitespaces to maintain" }';
$after  = json_encode(json_decode($before));
Posted by: Guest on June-08-2021

Code answers related to "remove space and line from json in php"

Browse Popular Code Answers by Language