You are here

public function JsonCodec::toJson in N1ED - Visual editor as CKEditor plugin with Bootstrap support 8.2

Stringifies response to JSON.

File

src/Flmngr/FileUploaderServer/lib/JsonCodec.php, line 49

Class

JsonCodec
JSON coder/decoder. Converting objects to JSON and back with fixing some common encoding errors.

Namespace

Drupal\n1ed\Flmngr\FileUploaderServer\lib

Code

public function toJson($resp) {
  return JsonCodec::staticToJson($resp);
}