我如何在python中对CSV文件进行转义

时间:2019-08-12 01:15:52

标签: python json csv

我有一个csv文件,其数据类型如下: (已编辑)

"id","data","return_period","return_type","taxable_entity_id","created_at","updated_at","filing_status","exception","fiscal_year","exception_info"
2911,"{\"sup_details\":{\"osup_det\":{\"txval\":1232800.00,\"iamt\":196459.00,\"camt\":12723.00,\"samt\":12723.00,\"csamt\":0.00},\"osup_zero\":{\"txval\":0.00,\"iamt\":0.00,\"camt\":0.00,\"samt\":0.00,\"csamt\":0.00},\"osup_nil_exmp\":{\"txval\":0.00,\"iamt\":0.00,\"camt\":0.00,\"samt\":0.00,\"csamt\":0.00},\"isup_rev\":{\"txval\":120000.00,\"iamt\":0.00,\"camt\":10800.00,\"samt\":10800.00,\"csamt\":0.00},\"osup_nongst\":{\"txval\":0.00,\"iamt\":0.00,\"camt\":0.00,\"samt\":0.00,\"csamt\":0.00}},\"itc_elg\":{\"itc_avl\":[{\"ty\":\"IMPG\",\"iamt\":0.00,\"camt\":0.00,\"samt\":0.00,\"csamt\":0.00},{\"ty\":\"IMPS\",\"iamt\":0.00,\"camt\":0.00,\"samt\":0.00,\"csamt\":0.00},{\"ty\":\"ISRC\",\"iamt\":0.00,\"camt\":10800.00,\"samt\":10800.00,\"csamt\":0.00},{\"ty\":\"ISD\",\"iamt\":0.00,\"camt\":0.00,\"samt\":0.00,\"csamt\":0.00},{\"ty\":\"OTH\",\"iamt\":0.00,\"camt\":4320.00,\"samt\":4320.00,\"csamt\":0.00}],\"itc_rev\":[{\"ty\":\"RUL\",\"iamt\":0.00,\"camt\":0.00,\"samt\":0.00,\"csamt\":0.00},{\"ty\":\"OTH\",\"iamt\":0.00,\"camt\":0.00,\"samt\":0.00,\"csamt\":0.00}],\"itc_net\":{\"iamt\":0.00,\"camt\":15120.00,\"samt\":15120.00,\"csamt\":0.00},\"itc_inelg\":[{\"ty\":\"RUL\",\"iamt\":0.00,\"camt\":0.00,\"samt\":0.00,\"csamt\":0.00},{\"ty\":\"OTH\",\"iamt\":0.00,\"camt\":0.00,\"samt\":0.00,\"csamt\":0.00}]},\"tx_pmt\":{\"tx_py\":[{\"trans_typ\":\"30002\",\"liab_ldg_id\":237161,\"sgst\":{\"intr\":0.00,\"tx\":0.00,\"fee\":0.00},\"cgst\":{\"intr\":0.00,\"tx\":0.00,\"fee\":0.00},\"cess\":{\"intr\":0.00,\"tx\":0.00,\"fee\":0.00},\"igst\":{\"intr\":0.00,\"tx\":0.00,\"fee\":0.00}},{\"trans_typ\":\"30003\",\"liab_ldg_id\":237162,\"sgst\":{\"intr\":0.00,\"tx\":0.00,\"fee\":0.00},\"cgst\":{\"intr\":0.00,\"tx\":0.00,\"fee\":0.00},\"cess\":{\"intr\":0.00,\"tx\":0.00,\"fee\":0.00},\"igst\":{\"intr\":0.00,\"tx\":0.00,\"fee\":0.00}}],\"pdcash\":[{\"liab_ldg_id\":\"237161\",\"trans_typ\":\"30002\",\"ipd\":196459.00,\"cpd\":8403.00,\"spd\":8403.00,\"cspd\":0.00,\"i_intrpd\":0.00,\"c_intrpd\":0.00,\"s_intrpd\":0.00,\"cs_intrpd\":0.00,\"i_lfeepd\":0.00,\"c_lfeepd\":0.00,\"s_lfeepd\":0.00,\"cs_lfeepd\":0.00},{\"liab_ldg_id\":\"237162\",\"trans_typ\":\"30003\",\"ipd\":0.00,\"cpd\":10800.00,\"spd\":10800.00,\"cspd\":0.00,\"i_intrpd\":0.00,\"c_intrpd\":0.00,\"s_intrpd\":0.00,\"cs_intrpd\":0.00,\"i_lfeepd\":0.00,\"c_lfeepd\":0.00,\"s_lfeepd\":0.00,\"cs_lfeepd\":0.00}],\"pditc\":{\"liab_ldg_id\":\"237161\",\"trans_typ\":\"30002\",\"i_pdi\":0.00,\"i_pdc\":0.00,\"i_pds\":0.00,\"c_pdi\":0.00,\"c_pdc\":4320.00,\"s_pdi\":0.00,\"s_pds\":4320.00,\"cs_pdcs\":0.00}},\"intr_ltfee\":{\"ltfee_details\":{\"camt\":0.00,\"samt\":0.00}},\"gstin\":\"37ACUPY7876Q1ZR\",\"ret_period\":\"072017\"}","072017","GSTR3B","652704b1-e9e4-4f3f-a1c8-148f076ac2a9","2018-02-05 14:06:28.709000","2018-11-18 05:36:24.625000","FILED",NULL,NULL,NULL
2918,"{\"sup_details\":{\"osup_det\":{\"txval\":1372882.00,\"iamt\":235139.00,\"camt\":5990.00,\"samt\":5990.00,\"csamt\":0.00},\"osup_zero\":{\"txval\":0.00,\"iamt\":0.00,\"camt\":0.00,\"samt\":0.00,\"csamt\":0.00},\"osup_nil_exmp\":{\"txval\":0.00,\"iamt\":0.00,\"camt\":0.00,\"samt\":0.00,\"csamt\":0.00},\"isup_rev\":{\"txval\":286800.00,\"iamt\":0.00,\"camt\":25812.00,\"samt\":25812.00,\"csamt\":0.00},\"osup_nongst\":{\"txval\":0.00,\"iamt\":0.00,\"camt\":0.00,\"samt\":0.00,\"csamt\":0.00}},\"itc_elg\":{\"itc_avl\":[{\"ty\":\"IMPG\",\"iamt\":0.00,\"camt\":0.00,\"samt\":0.00,\"csamt\":0.00},{\"ty\":\"IMPS\",\"iamt\":0.00,\"camt\":0.00,\"samt\":0.00,\"csamt\":0.00},{\"ty\":\"ISRC\",\"iamt\":0.00,\"camt\":25812.00,\"samt\":25812.00,\"csamt\":0.00},{\"ty\":\"ISD\",\"iamt\":0.00,\"camt\":0.00,\"samt\":0.00,\"csamt\":0.00},{\"ty\":\"OTH\",\"iamt\":50750.00,\"camt\":15515.00,\"samt\":15515.00,\"csamt\":0.00}],\"itc_rev\":[{\"ty\":\"RUL\",\"iamt\":0.00,\"camt\":0.00,\"samt\":0.00,\"csamt\":0.00},{\"ty\":\"OTH\",\"iamt\":0.00,\"camt\":0.00,\"samt\":0.00,\"csamt\":0.00}],\"itc_net\":{\"iamt\":50750.00,\"camt\":41327.00,\"samt\":41327.00,\"csamt\":0.00},\"itc_inelg\":[{\"ty\":\"RUL\",\"iamt\":0.00,\"camt\":0.00,\"samt\":0.00,\"csamt\":0.00},{\"ty\":\"OTH\",\"iamt\":0.00,\"camt\":0.00,\"samt\":0.00,\"csamt\":0.00}]},\"tx_pmt\":{\"tx_py\":[{\"trans_typ\":\"30002\",\"liab_ldg_id\":1726731,\"sgst\":{\"intr\":0.00,\"tx\":0.00,\"fee\":0.00},\"cgst\":{\"intr\":0.00,\"tx\":0.00,\"fee\":0.00},\"cess\":{\"intr\":0.00,\"tx\":0.00,\"fee\":0.00},\"igst\":{\"intr\":0.00,\"tx\":0.00,\"fee\":0.00}},{\"trans_typ\":\"30003\",\"liab_ldg_id\":1726732,\"sgst\":{\"intr\":0.00,\"tx\":0.00,\"fee\":0.00},\"cgst\":{\"intr\":0.00,\"tx\":0.00,\"fee\":0.00},\"cess\":{\"intr\":0.00,\"tx\":0.00,\"fee\":0.00},\"igst\":{\"intr\":0.00,\"tx\":0.00,\"fee\":0.00}}],\"pdcash\":[{\"liab_ldg_id\":\"1726731\",\"trans_typ\":\"30002\",\"ipd\":92115.00,\"cpd\":0.00,\"spd\":0.00,\"cspd\":0.00,\"i_intrpd\":0.00,\"c_intrpd\":0.00,\"s_intrpd\":0.00,\"cs_intrpd\":0.00,\"i_lfeepd\":0.00,\"c_lfeepd\":0.00,\"s_lfeepd\":0.00,\"cs_lfeepd\":0.00},{\"liab_ldg_id\":\"1726732\",\"trans_typ\":\"30003\",\"ipd\":0.00,\"cpd\":25812.00,\"spd\":25812.00,\"cspd\":0.00,\"i_intrpd\":0.00,\"c_intrpd\":0.00,\"s_intrpd\":0.00,\"cs_intrpd\":0.00,\"i_lfeepd\":0.00,\"c_lfeepd\":0.00,\"s_lfeepd\":0.00,\"cs_lfeepd\":0.00}],\"pditc\":{\"liab_ldg_id\":\"1726731\",\"trans_typ\":\"30002\",\"i_pdi\":50750.00,\"i_pdc\":46137.00,\"i_pds\":46137.00,\"c_pdi\":0.00,\"c_pdc\":5990.00,\"s_pdi\":0.00,\"s_pds\":5990.00,\"cs_pdcs\":0.00}},\"intr_ltfee\":{\"ltfee_details\":{\"camt\":0.00,\"samt\":0.00}},\"gstin\":\"37ACUPY7876Q1ZR\",\"ret_period\":\"082017\"}","082017","GSTR3B","652704b1-e9e4-4f3f-a1c8-148f076ac2a9","2018-02-05 14:07:22.333000","2018-11-18 05:36:25.525000","FILED",NULL,NULL,NULL
1423652,NULL,102018,"GSTR3B","813a92d0-287d-4b6c-a360-7b5e378ed119","2018-11-07 11:31:56.178000","2018-11-09 08:43:38.875000","NOT_FILED","",NULL,NULL

如何取消对csv文件的转义,以便获得可行的JSON?

2 个答案:

答案 0 :(得分:0)

如果我打开文件并将'\\"'替换为"'"并写入临时文件,则csv没问题将所有JSON字符串放在一列中,但是字符串的单引号引起了错误。因此,在与模块"'"一起使用之前,我必须用'"'(双精度)替换json(单精度)

import csv
import json

data = open('input.csv').read()
data = data.replace('\\"', "'")
open('temp.csv', 'w').write(data)

data = open('temp.csv')
csv_reader = csv.reader(data)

# skip headers
next(csv_reader)

for row in csv_reader:
    print(json.loads(row[1].replace("'", '"')))

我还可以将'\\"'替换为唯一值,即。 "|",然后我可以用'"'(单)替换其他"'"(双),并用"|"替换'"',这样我可以在JSON列中得到正确的引号,但是我必须在`csv

中使用quotechar="'"
import csv
import json

data = open('input.csv').read()
data = data.replace('\\"', "|").replace('"', "'").replace('|', '"')
open('temp.csv', 'w').write(data)

data = open('temp.csv')
csv_reader = csv.reader(data, quotechar="'")

# skip headers
next(csv_reader)

for row in csv_reader:
    print(json.loads(row[1]))))

编辑:

如果您使用的是空字符串而不是JSON字符串,那么

使用if/else

for row in csv_reader:

    text = row[1].replace("'", '"')

    if text == 'NULL':
        print("Empty string")
    else:
        print(json.loads(text))
        #pprint.pprint(json.loads(text), indent=2)

try/except-它可以捕获JSON字符串中的其他问题

for row in csv_reader:

    text = row[1].replace("'", '"')

    try:
        print(json.loads(text))
        #pprint.pprint(json.loads(text), indent=2)
    except Exception as ex:
        print("Something wrong with JSON:", ex)

在代码中,我使用模块Pretty Print来显示带有缩进的数据     导入csv     导入json     导入pprint

data = open('input.csv').read()
data = data.replace('\\"', "'")
open('temp.csv', 'w').write(data)

data = open('temp.csv')
csv_reader = csv.reader(data)

# skip headers
next(csv_reader)

for row in csv_reader:

    text = row[1].replace("'", '"')

    try:
        #print(json.loads(text))
        pprint.pprint(json.loads(text), indent=2)
    except Exception as ex:
        print("Something wrong with JSON:", ex)

编辑:我使用一些JSON字符串创建了自己的csv,并且csv似乎使用""而不是\"来转义char ",因此这应该可以解决问题用json读取csv:

import csv

data = open('input.csv').read()

data = data.replace('\\"', '""')

open('temp.csv', 'w').write(data)

import csv
import json

data = open('input.csv').read()
data = data.replace('\\"', '""')
open('temp.csv', 'w').write(data)

data = open('temp.csv')
csv_reader = csv.reader(data)

# skip headers
next(csv_reader)

for row in csv_reader:

    try:
        print(json.loads(row[1]))
        #pprint.pprint(json.loads(row[1]), indent=2)
    except Exception as ex:
        print('Something wrong with JSON string:', ex)
        print('row[1]:', row[1])

答案 1 :(得分:0)

似乎文件包含双重编码的JSON。我尝试使用Python的csv库进行解析,但是没有运气。

但是您可以使用re模块,然后手动解码json。此脚本打印json数据和已解析的其余行:

import re
import json

with open('file.csv', newline='') as malformed_csvfile:
    next(malformed_csvfile) # skip headers
    for line in malformed_csvfile:
        d1, j, d2 = re.findall(r'^(.*?),(".*?")(,".*)', line)[0]
        json_data = json.loads(json.loads(j))
        rest_of_line = list( map(lambda d: d.strip('"'), (d1.strip() + d2.strip()).split(',') ) )

        print(rest_of_line)
        print(json.dumps(json_data, indent=4))

打印:

['2911', '072017', 'GSTR3B', '652704b1-e9e4-4f3f-a1c8-148f076ac2a9', '2018-02-05 14:06:28.709000', '2018-11-18 05:36:24.625000', 'FILED', 'NULL', 'NULL', 'NULL']
{
    "sup_details": {
        "osup_det": {
            "txval": 1232800.0,
            "iamt": 196459.0,
            "camt": 12723.0,
            "samt": 12723.0,
            "csamt": 0.0
        },
        "osup_zero": {
            "txval": 0.0,
            "iamt": 0.0,
            "camt": 0.0,
            "samt": 0.0,
            "csamt": 0.0
        },
        "osup_nil_exmp": {
            "txval": 0.0,
            "iamt": 0.0,
            "camt": 0.0,
            "samt": 0.0,
            "csamt": 0.0
        },
        "isup_rev": {
            "txval": 120000.0,
            "iamt": 0.0,
            "camt": 10800.0,
            "samt": 10800.0,
            "csamt": 0.0
        },
        "osup_nongst": {
            "txval": 0.0,
            "iamt": 0.0,
            "camt": 0.0,
            "samt": 0.0,
            "csamt": 0.0
        }
    },
   ...and so on.

file.csv包含问题中的文本:

"id","data","return_period","return_type","taxable_entity_id","created_at","updated_at","filing_status","exception","fiscal_year","exception_info"
2911,"{\"sup_details\":{\"osup_det\":{\"txval\":1232800.00,\"iamt\":196459.00,\"camt\":12723.00,\"samt\":12723.00,\"csamt\":0.00},\"osup_zero\":{\"txval\":0.00,\"iamt\":0.00,\"camt\":0.00,\"samt\":0.00,\"csamt\":0.00},\"osup_nil_exmp\":{\"txval\":0.00,\"iamt\":0.00,\"camt\":0.00,\"samt\":0.00,\"csamt\":0.00},\"isup_rev\":{\"txval\":120000.00,\"iamt\":0.00,\"camt\":10800.00,\"samt\":10800.00,\"csamt\":0.00},\"osup_nongst\":{\"txval\":0.00,\"iamt\":0.00,\"camt\":0.00,\"samt\":0.00,\"csamt\":0.00}},\"itc_elg\":{\"itc_avl\":[{\"ty\":\"IMPG\",\"iamt\":0.00,\"camt\":0.00,\"samt\":0.00,\"csamt\":0.00},{\"ty\":\"IMPS\",\"iamt\":0.00,\"camt\":0.00,\"samt\":0.00,\"csamt\":0.00},{\"ty\":\"ISRC\",\"iamt\":0.00,\"camt\":10800.00,\"samt\":10800.00,\"csamt\":0.00},{\"ty\":\"ISD\",\"iamt\":0.00,\"camt\":0.00,\"samt\":0.00,\"csamt\":0.00},{\"ty\":\"OTH\",\"iamt\":0.00,\"camt\":4320.00,\"samt\":4320.00,\"csamt\":0.00}],\"itc_rev\":[{\"ty\":\"RUL\",\"iamt\":0.00,\"camt\":0.00,\"samt\":0.00,\"csamt\":0.00},{\"ty\":\"OTH\",\"iamt\":0.00,\"camt\":0.00,\"samt\":0.00,\"csamt\":0.00}],\"itc_net\":{\"iamt\":0.00,\"camt\":15120.00,\"samt\":15120.00,\"csamt\":0.00},\"itc_inelg\":[{\"ty\":\"RUL\",\"iamt\":0.00,\"camt\":0.00,\"samt\":0.00,\"csamt\":0.00},{\"ty\":\"OTH\",\"iamt\":0.00,\"camt\":0.00,\"samt\":0.00,\"csamt\":0.00}]},\"tx_pmt\":{\"tx_py\":[{\"trans_typ\":\"30002\",\"liab_ldg_id\":237161,\"sgst\":{\"intr\":0.00,\"tx\":0.00,\"fee\":0.00},\"cgst\":{\"intr\":0.00,\"tx\":0.00,\"fee\":0.00},\"cess\":{\"intr\":0.00,\"tx\":0.00,\"fee\":0.00},\"igst\":{\"intr\":0.00,\"tx\":0.00,\"fee\":0.00}},{\"trans_typ\":\"30003\",\"liab_ldg_id\":237162,\"sgst\":{\"intr\":0.00,\"tx\":0.00,\"fee\":0.00},\"cgst\":{\"intr\":0.00,\"tx\":0.00,\"fee\":0.00},\"cess\":{\"intr\":0.00,\"tx\":0.00,\"fee\":0.00},\"igst\":{\"intr\":0.00,\"tx\":0.00,\"fee\":0.00}}],\"pdcash\":[{\"liab_ldg_id\":\"237161\",\"trans_typ\":\"30002\",\"ipd\":196459.00,\"cpd\":8403.00,\"spd\":8403.00,\"cspd\":0.00,\"i_intrpd\":0.00,\"c_intrpd\":0.00,\"s_intrpd\":0.00,\"cs_intrpd\":0.00,\"i_lfeepd\":0.00,\"c_lfeepd\":0.00,\"s_lfeepd\":0.00,\"cs_lfeepd\":0.00},{\"liab_ldg_id\":\"237162\",\"trans_typ\":\"30003\",\"ipd\":0.00,\"cpd\":10800.00,\"spd\":10800.00,\"cspd\":0.00,\"i_intrpd\":0.00,\"c_intrpd\":0.00,\"s_intrpd\":0.00,\"cs_intrpd\":0.00,\"i_lfeepd\":0.00,\"c_lfeepd\":0.00,\"s_lfeepd\":0.00,\"cs_lfeepd\":0.00}],\"pditc\":{\"liab_ldg_id\":\"237161\",\"trans_typ\":\"30002\",\"i_pdi\":0.00,\"i_pdc\":0.00,\"i_pds\":0.00,\"c_pdi\":0.00,\"c_pdc\":4320.00,\"s_pdi\":0.00,\"s_pds\":4320.00,\"cs_pdcs\":0.00}},\"intr_ltfee\":{\"ltfee_details\":{\"camt\":0.00,\"samt\":0.00}},\"gstin\":\"37ACUPY7876Q1ZR\",\"ret_period\":\"072017\"}","072017","GSTR3B","652704b1-e9e4-4f3f-a1c8-148f076ac2a9","2018-02-05 14:06:28.709000","2018-11-18 05:36:24.625000","FILED",NULL,NULL,NULL
2918,"{\"sup_details\":{\"osup_det\":{\"txval\":1372882.00,\"iamt\":235139.00,\"camt\":5990.00,\"samt\":5990.00,\"csamt\":0.00},\"osup_zero\":{\"txval\":0.00,\"iamt\":0.00,\"camt\":0.00,\"samt\":0.00,\"csamt\":0.00},\"osup_nil_exmp\":{\"txval\":0.00,\"iamt\":0.00,\"camt\":0.00,\"samt\":0.00,\"csamt\":0.00},\"isup_rev\":{\"txval\":286800.00,\"iamt\":0.00,\"camt\":25812.00,\"samt\":25812.00,\"csamt\":0.00},\"osup_nongst\":{\"txval\":0.00,\"iamt\":0.00,\"camt\":0.00,\"samt\":0.00,\"csamt\":0.00}},\"itc_elg\":{\"itc_avl\":[{\"ty\":\"IMPG\",\"iamt\":0.00,\"camt\":0.00,\"samt\":0.00,\"csamt\":0.00},{\"ty\":\"IMPS\",\"iamt\":0.00,\"camt\":0.00,\"samt\":0.00,\"csamt\":0.00},{\"ty\":\"ISRC\",\"iamt\":0.00,\"camt\":25812.00,\"samt\":25812.00,\"csamt\":0.00},{\"ty\":\"ISD\",\"iamt\":0.00,\"camt\":0.00,\"samt\":0.00,\"csamt\":0.00},{\"ty\":\"OTH\",\"iamt\":50750.00,\"camt\":15515.00,\"samt\":15515.00,\"csamt\":0.00}],\"itc_rev\":[{\"ty\":\"RUL\",\"iamt\":0.00,\"camt\":0.00,\"samt\":0.00,\"csamt\":0.00},{\"ty\":\"OTH\",\"iamt\":0.00,\"camt\":0.00,\"samt\":0.00,\"csamt\":0.00}],\"itc_net\":{\"iamt\":50750.00,\"camt\":41327.00,\"samt\":41327.00,\"csamt\":0.00},\"itc_inelg\":[{\"ty\":\"RUL\",\"iamt\":0.00,\"camt\":0.00,\"samt\":0.00,\"csamt\":0.00},{\"ty\":\"OTH\",\"iamt\":0.00,\"camt\":0.00,\"samt\":0.00,\"csamt\":0.00}]},\"tx_pmt\":{\"tx_py\":[{\"trans_typ\":\"30002\",\"liab_ldg_id\":1726731,\"sgst\":{\"intr\":0.00,\"tx\":0.00,\"fee\":0.00},\"cgst\":{\"intr\":0.00,\"tx\":0.00,\"fee\":0.00},\"cess\":{\"intr\":0.00,\"tx\":0.00,\"fee\":0.00},\"igst\":{\"intr\":0.00,\"tx\":0.00,\"fee\":0.00}},{\"trans_typ\":\"30003\",\"liab_ldg_id\":1726732,\"sgst\":{\"intr\":0.00,\"tx\":0.00,\"fee\":0.00},\"cgst\":{\"intr\":0.00,\"tx\":0.00,\"fee\":0.00},\"cess\":{\"intr\":0.00,\"tx\":0.00,\"fee\":0.00},\"igst\":{\"intr\":0.00,\"tx\":0.00,\"fee\":0.00}}],\"pdcash\":[{\"liab_ldg_id\":\"1726731\",\"trans_typ\":\"30002\",\"ipd\":92115.00,\"cpd\":0.00,\"spd\":0.00,\"cspd\":0.00,\"i_intrpd\":0.00,\"c_intrpd\":0.00,\"s_intrpd\":0.00,\"cs_intrpd\":0.00,\"i_lfeepd\":0.00,\"c_lfeepd\":0.00,\"s_lfeepd\":0.00,\"cs_lfeepd\":0.00},{\"liab_ldg_id\":\"1726732\",\"trans_typ\":\"30003\",\"ipd\":0.00,\"cpd\":25812.00,\"spd\":25812.00,\"cspd\":0.00,\"i_intrpd\":0.00,\"c_intrpd\":0.00,\"s_intrpd\":0.00,\"cs_intrpd\":0.00,\"i_lfeepd\":0.00,\"c_lfeepd\":0.00,\"s_lfeepd\":0.00,\"cs_lfeepd\":0.00}],\"pditc\":{\"liab_ldg_id\":\"1726731\",\"trans_typ\":\"30002\",\"i_pdi\":50750.00,\"i_pdc\":46137.00,\"i_pds\":46137.00,\"c_pdi\":0.00,\"c_pdc\":5990.00,\"s_pdi\":0.00,\"s_pds\":5990.00,\"cs_pdcs\":0.00}},\"intr_ltfee\":{\"ltfee_details\":{\"camt\":0.00,\"samt\":0.00}},\"gstin\":\"37ACUPY7876Q1ZR\",\"ret_period\":\"082017\"}","082017","GSTR3B","652704b1-e9e4-4f3f-a1c8-148f076ac2a9","2018-02-05 14:07:22.333000","2018-11-18 05:36:25.525000","FILED",NULL,NULL,NULL