Revert

Revert data to json_encode