Preview:
String streamingIngestionPayload = JSON.serializePretty(new Map<String,List<Map<String,Object>>>{
    'data' => new List<Map<String,Object>>{
        new Map<String,Object>{
            'Id'      => 'id',
            'Number'  => 1234,
            'Boolean' => true,
            'Object'  => JSON.serialize([SELECT Id,Name FROM User WHERE Id = :UserInfo.getUserId()])
        }
    }
});

System.debug(streamingIngestionPayload);
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter