Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

remove space and line from json in php

$before = '{ "key": "value with whitespaces to maintain" }';
$after  = json_encode(json_decode($before));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #space #line #json #php
ADD COMMENT
Topic
Name
5+4 =