Приветствую! Ломаю голову не первый час, поиски не увенчались успехом. Есть массив параметров, которые отправляются по file_get_contents: PHP: $request_params = array( 'message' => "сообщение", 'user_id' => '23423432', 'keyboard' => '', ); $get_params = http_build_query($request_params); file_get_contents('https://api.vk.com/method/messages.send?'. $get_params); Как же в параметре keyboard передать json-объект следующего вида: Код (Text): keyboard: { "one_time": false, "buttons": [ [{ "action": { "type": "text", "payload": "{\"button\": \"1\"}", "label": "Red" }, "color": "negative" }, { "action": { "type": "text", "payload": "{\"button\": \"2\"}", "label": "Green" }, "color": "positive" }], [{ "action": { "type": "text", "payload": "{\"button\": \"3\"}", "label": "White" }, "color": "default" }, { "action": { "type": "text", "payload": "{\"button\": \"4\"}", "label": "Blue" }, "color": "primary" }] ] }