Skip to main content
  • 10000+ Posts
  • 53,426 Replies
10000+ Posts
how can I flatten json objects when they have different names?

"2046": {        "ID": "020935",        "Address": "Bagg Close 9, 29643 Churchtown",        "Provider": [            "D2 - GSM09",            "D2 - LTE08"        ],        "Locationdocuments": {            "stob": {                "date": "/Date(1412546400000)/",                "Applicant": "Vodafone",                "STOB": "c8859eec-63b2-4a75-a2c2-00a586110005",                "TD": "74c192b2-0067-40fc-a41d-f5b5f73afbf1",                "BZ": "0eb422f8-0561-4f4f-8324-d7110ff56ff0",                "LP": "0b37ed04-4d01-4f07-b67f-d8bd2590a66c",                "AD": "c019cc03-c812-4816-8024-407cedeb461c",                "IBA": "9684e283-10e6-4e95-8931-3906fd3a62cb"            },            "12.09.2014": {                "date": "/Date(1412546400000)/",                "Applicant": "Vodafone",                "STOB": "c8859eec-63b2-4a75-a2c2-00a586110005",

regex to find a part of a string

Hello I would like to find the following part in a text file (originally xml file style) :<userData code="viPartListRailML" value="1">            <partRailML s="0.0000000000000000e+00" id="0"/>            <partRailML s="2.0000000000000000e+01" id="1"/>            <partRailML s="1.2000000000000000e+02" id="2"/>            <partRailML s="2.2000000000000000e+02" id="3"/>            <partRailML s="3.2000000000000000e+02" id="4"/>            <partRailML s="4.2000000000000000e+02" id="5"/>            <partRailML s="5.2000000000000000e+02" id="6"/>            <partRailML s="6.2000000000000000e+02" id="7"/>            <partRailML s="7.2000000000000000e+02" id="8"/>            <partRailML s="8.2000000000000000e+02" id="9"/>            <partRailML s="9.2000000000000000e+02" id="10"/>        </userData> 

Badge Winners

Show all badges

Community Stats

32,503
Posts
123,448
Replies
40,700
Members