setId($id); $mapping = $mapper->getMapping($sub); print encoding_normalize::json_encode($mapping); }else{ print encoding_normalize::json_encode(array('mapping'=> 'false')); } }