skip to Main Content

CSV to customized JSON format in R

I want to convert the following data: CERTIFICADO = tibble::tibble(type = "cuar_private_file", title = "Certificado Participacion CC FECHIC 2023 30207", excerpt = "Certificado Participacion CC FECHIC 2023 30207", post_date = "2024-01-21 21:00:00", owners = 1965, attachments = "Certificado_Participacion_CC_FECHIC_2023_30207.pdf", method =…

VIEW QUESTION

Javascript – Access Object value in a string and compare

var siteList = {}; var siteInfo = []; var part_str = '[{"part":"00000PD","partSupplier":"DELL"}]'; var part = part_str.substring(1,part_str.length-1); eval('var partobj='+part ); console.log(partobj.part); console.log(partobj.partSupplier); The above code works fine. But I have to find out if the part number matches the following part;…

VIEW QUESTION

Using Python remove indentation in JSON

{ "band_class": "n77", "capacity": true, "connected_bsp": "BSP-2", "connected_enb": "123", "connected_gnb": "012", "device_model": "TITAN", "enb_locan": { "coordinates": [ -00011, 00.87 ], "crs": { "properties": { "name": "EPSG:4326" }, "type": "name" }, "type": "Point" }, "enb_order_distance": 25, "trans_dt": "2024-01-11" } I need…

VIEW QUESTION

json jq formatting unnamed objects onto single line

Another question re 'jq' formatting onto a single line. Here is my json file: "facet_counts":{ "facet_queries":{}, "facet_fields":{ "title":[ "primary",5981, "database",5965, "source",5963, "eecm",5949, "the",5066, "research",4888]}, "facet_ranges":{} } } As you see there is no label assigned for the tuplets within the…

VIEW QUESTION
Back To Top
Search