i have searched around , not find answer, or maybe it's buggy in json code?
json file: { "html": { "content": "<div style=\"background-color: rgb(255, 255, 255); height: 11px; width: 111px;\"></div>" } } background-color: rgb(255, 255, 255); --> no background-color: #000000; --> ok
php:
$jsonpathsite = '/site/01.json'; $jsonfilesite = file_get_contents($jsonpathsite); $jsonreadsite = jsondecode($jsonfilesite,true); // saving file $jsonreadsite['html']['content'] = $content; file_put_contents( $jsonpathsite, json_encode($jsonreadsite) );
its not able saved rgb format?
but if used hex format json file fine!
Comments
Post a Comment