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