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