Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Json Parsing
#1
Hi Expert,

i wanted to extract below objects from json file, (valueObject,valueString)

"analyzeResult": {

    "documentResults": [

      {

        "docType": "custom:sampelform0205",

        "docTypeConfidence": 0.85,

        "fields": {

          "Report": {

            "type": "array",

            "valueArray": [

              {

                "type": "object",

                "valueObject": {

                  "machinary": {

                    "boundingBox": [

                      6.515,

                      1.62,

                      6.71,

                      1.62,

                      6.71,

                      1.675,

                      6.515,

                      1.675

                    ],

                    "elements": [

                      "#/readResults/0/lines/26/words/0"

                    ],

                    "page": 1,

                    "text": "34.70",

                    "type": "string",

                    "valueString": "34.70"

                  },
Could you help me with some sample code to extract
Larz60+ write May-04-2022, 02:16 PM:
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Fixed for you this time. Please use BBCode tags on future posts.
Reply


Messages In This Thread
Json Parsing - by sshree43 - May-04-2022, 12:26 PM
RE: Json Parsing - by snippsat - May-04-2022, 12:54 PM
RE: Json Parsing - by sshree43 - May-04-2022, 12:56 PM
RE: Json Parsing - by snippsat - May-04-2022, 03:41 PM
RE: Json Parsing - by sshree43 - May-04-2022, 04:37 PM
RE: Json Parsing - by snippsat - May-04-2022, 09:21 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Parsing large JSON josvink66 5 2,066 Jan-10-2024, 05:46 PM
Last Post: snippsat
  Parsing JSON pyStund 4 6,520 Jul-31-2022, 02:02 PM
Last Post: pyStund
  json api data parsing elvis 0 1,360 Apr-21-2022, 11:59 PM
Last Post: elvis
  string indices must be integers when parsing Json ilknurg 3 10,086 Mar-10-2022, 11:02 AM
Last Post: DeaD_EyE
  Help Parsing JSON kfwydfo1x 5 6,876 Jan-26-2021, 10:42 AM
Last Post: DeaD_EyE
  Parsing JSON with backslashes bazcurtis 3 11,766 Feb-08-2020, 01:13 PM
Last Post: bazcurtis
  JSON parsing (nested) fakka 0 3,634 Nov-25-2019, 09:25 PM
Last Post: fakka
  Parsing json - dictionary with in dictionary krish216 6 4,725 Jul-30-2019, 10:01 PM
Last Post: cvsae
  JSON Parsing PythonLearner007 3 3,273 Jan-31-2019, 10:47 AM
Last Post: gontajones

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020