<?php

$json_origen = <<<'JSON'
{
	//Remove this comment
	"Command": "storeSystemConfig",
	"SystemId": "1234", //Remove this comment

	/*Remove this and the empty line above and below*/

	/*This can be removed but not what behind here =>*/"TestParam": "Hello",
	
	"TestString": "Do not revome this comment /*don not remove*/ and also this one: //Test comment"
} 
JSON;

	//Remove comment
$json = preg_replace("#(/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+/)|([\s\t]//.*)|(^//.*)#", '', $json_origen);
	//Remove empty lines
$json = preg_replace('/\n\s*\n/', "\n", $json);

var_dump($json);

?>