json_encode an object code example Example: json_encode() json_encode(['name' => 'Jake', 'country' => 'Philippines'])