JSON 오브젝트 작성 방법 PHP 배열에서 JSON 개체를 생성하려고 합니다.어레이는 다음과 같습니다. $post_data = array('item_type_id' => $item_type, 'string_key' => $string_key, 'string_value' => $string_value, 'string_extra' => $string_extra, 'is_public' => $public, 'is_public_for_contacts' => $public_contacts); JSON을 인코딩하는 코드는 다음과 같습니다. $post_data = json_encode($post_data); JSON 파일은 최종적으로 다음과 같이 표시됩니다. { "item": { "is_public_for_cont..