Need to help in the analysis of string in JSON using PLJSON

Hello
I have JSON stored in a database field:

-Query
Select data1 from table1 where id = 339207152427;
-Results:
[{'name': 'Home'}, {'code': 'JPNWC74ZKW9'}, {'start date': ' 01\/02\/2014'}, {'name': "hhh, Rams '}]

I need to analyze the above results in 3 fields in a separate table. For now, I just try to analyze the results using PLJSON, but get ORA-20101: JSON Parser exception - no {beginning found error during the execution of the following pl/sql block:}

declare

VIN_JSON varchar2 (4000);
jsonObj json;
listOfValues json_list;
listElement json_value;

Start

Select data1 in VIN_JSON from table1 where id = 339207152427;

jsonObj: = new json (VIN_JSON);
listOfValues: = jsonObj.get_values ();

I'm looping 1.listOfValues.count
listElement: = listOfValues.get (i);

end loop;
end;
/

I believe that my syntax is close, but was hoping some new instructions.

Thanks in advance!
John

The brackets indicate a list. If you already have a list and new json may not work.

listOfValues := json_list(VIN_JSON);

Published by: chris227 on 25.02.2013 12:52

Tags: Database

Similar Questions

  • I really need professional help in the analysis of XML to the XML Document, or I want to read XML

    Hi all

    I'm really looking for your sweet help. I have suffered for two days. I'm working on Blackberry java app. I have the xml file is located in "file:///store/home/user/myNotes.xml".

    I want to be able to parse the XML into XMLDocument to confront the NodeList and ChildNode.

    I always get Eception Exception RunTimeError

    NOTE the following prayer:

    1 - my JDK is 1.7.0.5.5 (SE) only

    2. I don't have "XMLSerializer" or "Transformer", or "TransformerFactory', 'KXML.

    3. all I want is just to be able to read XML above and analyzed to XMLDocument.

    Find my Java code below:

    =====================================================================================

    Private Sub parseXmlFile() raises {RuntimeException
    try {}

    XMLDocument DOM = null;
    private static final String fileN = "file:///store/home/user/myNotes.xml";
    FileConnection fc = (FileConnection) Connector.open (fileN);
    fc.openDataInputStream ();
    DocumentBuilderFactory plant = DocumentBuilderFactory.newInstance ();
    DocumentBuilder builder = factory.newDocumentBuilder ();
    InputStream is = getClass () .getResourceAsStream (fileN);
    DOM = builder.parse (is);
        
    } catch (Exception pce) {}
    Dialog.Alert (PCE. ToString());
    }
            
    }

    ======================================================================

    End of my Code

    Thank you very much for your time of reading and you answer to help me.

    I appreciate really.

    Dear all,

    Hello and thank you from the bottom of my heart. This works. My problem was absent "normalization."

    Thank you once again I ng3epa enjoyed your valuable contribution.

  • Please I need your help in the next issue.

    Please I need your help in the next issue.

    I'm trying to change a driver of function generator to perform the following operations:

    starting with the initial value (for example 1 MHz) for some time (for example 10 sec.) and turn off the output for another time (e.g. 20 seconds) and then start again but this time with the frequency increment value (for example 1 MHz + 0.1 x n MHz = 1.1 MHz for n = 1, 2, 3,... n).

    The function generator model is ag33xxxGPIB and the link of the driver is http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=E3B19B3E9066659CE034080020E748...

    There is no modifications are required for the driver, although there might be an example that you can edit. You use the function of the frequency set in a loop with a shift register. Initialize the registry to offset with the frequency of your departure and each iteration of the loop, add the value of the step. Exit the loop when the stop frequency is reached. Try to write something and after back if you have any problems. Fix what you wrote.

    It's pretty basic LabVIEW code. Did you do the online tutorials?

  • How to create the string of JSON using QVariantMap array?

    Hi all

    How to create sub string of Json using QVariantMap array?

    {
        "Test1": [
            {
                "dataTest1": "0000",
                "dataTest2": 1412,
                "dataTest3": "",
                "dataTest4": "0000",
            }
        ],
        "Test2": {
            "data1": 1412008,
            "data2": "0000",
            "data3": "A",
            "data4": "0000",
        }
    }
    

    Waiting for your answer please reply me as soon as possible.

    JSON array is QVariantList

    JSON object is QVariantMap

    then create a QVariantLsit and insert your QVariantMaps

  • Need for reports and the analysis down server move to a different server

    I lost my original for RA and re-installed server components on another server, however, when I try to access the workspace site, I get the message * "did not find a server Hyperion Reporting and analysis 'former name of the server running" at the port of 6800. Please check your connection string server and confirm that the server is configured. *

    I re - run the Setup and configuration without result. Is there a configuration file that I have to update somewhere?

    This essentially means that the HSS register always points to the old name of the server for the RA_FRAMEWORK component. You will need to check through the report of registry if there several instance of the RA registered (one with the old server) framework and the other with the new server. If Yes, you can remove the old a registry through the epmsys_registry command line tool and reconfigure with the new server.

    If you need help with the same, if it please raise a SR with Oracle support and should be able to guide you through.

  • The analysis of string to xml format

    Dear all,

    I have an OSB service that returns an xml string output form.
    I call this OSB service in BPEL but it fails because of the format of the string received by BPEL.

    How can I avoid it. I also try to convert string to xml but failing to do so.

    The pointers to that would be useful

    Thank you and best regards,
    MITS

    try to set the response from transport HTTP header
    http:content-type=text/XML
    application/xml or (even better)

    (and of course, you must make sure you have fn - bea: inlinedXml() function to convert the string in an XmlObject)

  • Need help with the analysis of flows RSS Feed

    I hope someone could provide a simple startup script to help me analyze this iTunes compatible RSS feeds
    http://feeds.feedburner.com/DigitalPhotographyLife

    The main information that I try to analyze are:

    The name of the Podcast (itunes:name)
    Each show < pubDate > pubDate
    The title of each < title > program
    The link to each show < title >
    Description < description >
    Link to the media of each show < media: url = "" >

    I analyzed WHAT FLOW RSS standard with success in the past, but the colon (:)) gives me problems.

    Any help would be greatly appreciated.

    Ron

    Like this?

    http://feeds.feedburner.com/DigitalPhotographyLife ".
    Properties = query "myFeed" = "myQuery" >

    ITUNES_AUTHOR: #ITUNES_AUTHOR #.

    pubDate: #PUBLISHEDDATE #.

    Title: #TITLE #.

    Link: #RSSLINK #.

    link: #LINKHREF #.

    Description: #ITUNES_SUMMARY #.

    --
    Ken Ford
    Adobe Community Expert Dreamweaver/ColdFusion
    Adobe Certified Expert - Dreamweaver CS3
    Adobe Certified Expert - ColdFusion 8
    Fordwebs, LLC
    http://www.fordwebs.com
    http://www.cfnoob.com

    "Photoshare" wrote in message
    News:gecpu7$H0T$1@forums. Macromedia.com...
    > Hope someone could provide a simple startup script to help me
    > parse
    > This iTunes compatible RSS feeds
    > http://feeds.feedburner.com/DigitalPhotographyLife
    >
    > The main information I am trying to analyze are:
    >
    > The name of the Podcast (itunes:name)
    > Pubdate of each show
    > The title of each program<br>> The link to each show<title><br>> Description<description><br>> The media of each show link<media:content url=""><br>><br>> I analyzed WHAT FLOW RSS standard with success in the past, but the colon<br>> (:) is<br>> Send me problems.<br>><br>> Any help would be greatly appreciated.<br>><br>> Ron<br>><br>><p class="reply"></media:content></description>

  • Need urgent help with the startup of the database

    Hi all

    I use oracle 10g on 32 bits of windower server.

    I try to start my database today and it gives me error, and that's my production database.
    I need very urgent help you. (I have no rman backup, and data are not n6cessoires so, since it is the practice of the student).
    SQL> startup open
    ORACLE instance started.
    
    Total System Global Area  524288000 bytes
    Fixed Size                   790180 bytes
    Variable Size             250343772 bytes
    Database Buffers          272629760 bytes
    Redo Buffers                 524288 bytes
    Database mounted.
    ORA-01110: data file 34: 'G:\ORACLE\DATAFILES_ACADEMY\ACADEMY'
    ORA-01115: IO error reading block from file 34 (block # 1)
    ORA-27070: async read/write failed
    OSD-04016: Error queuing an asynchronous I/O request.
    O/S-Error: (OS 23) Data error (cyclic redundancy check).
    Kind regards.

    Maahjoor wrote:
    Hi dear,

    I need further assistance on your side, I restarted the server, but the same problem.
    as there is a way to drop and re-create a system tablespace? given that the 34 file belong to the tablesapce system.

    concerning

    N °
    So just create a new database. Who will have every ten minutes. And to say that your students to create new storage spaces. Who will be the two minutes.

  • Doubt in the analysis of String

    Hello


    '23:BE|2009:A@Banglore '.

    I need to analyze the above string and retrieve the data.

    Now I use the StringTokenizer and my code is present,

    String sz = "23:BE|2009+A@Banglore";
    
              StringTokenizer szTkn = new StringTokenizer(sz, ":");
    
              System.out.println(" : " + szTkn.nextToken());
    
              szTkn = new StringTokenizer(szTkn.nextToken(), "|");
              System.out.println(" | " + szTkn.nextToken());
    
              szTkn = new StringTokenizer(szTkn.nextToken(), "+");
              System.out.println(" + " + szTkn.nextToken());
    
              szTkn = new StringTokenizer(szTkn.nextToken(), "@");
              System.out.println(" @ " + szTkn.nextToken());
    
              System.out.println(" " + szTkn.nextToken());
    is there a good way to do this?

    Vijay wrote:
    You can use backreferencing to capture any group in a correspondence of motifs.
    Take a look at this:
    http://download.Oracle.com/javase/tutorial/essential/regex/groups.html

    I don't see how "backreferencing' entry in this since the OP needs the content of field values between the separators without direct reference to what was found before.

    Since the original code fields are always there, and always in the same order, I think it is always more easy just use split()

    String sz = "23:BE|2009+A@Banglore";
    String[] splitSz = sz.split("[:|+@]");
    
  • noob ultimate need to help get the quality on the videos I uploaded toyoutube

    Hi my name is Sami - I film a sports fun project to help people get in shape and find the form and it's all good

    I record my stuff with a Canon HFS21 of Legeria and im not a wizzard from camera, but I know it's good and recorded in high quality hd.

    Now, when I take the records and copy them to my computer the definition is incredible and looks really good and strong.

    My challenge is that the files are in the format .mts so I need them (I use avs video converter 7) convert it to avi, before I edit them in adobe first elements 9 (I have to do that because there is no sound on the .mts clips when I move them at first) (is it possible to convert from adobe first?).

    I then convert them in avs video converter 7 (and I'm not sure if I am using the correct settings :) BTW I want TO HAVE THE MOST OPTIMAL FOR DOWNLOAD FROM YOUTUBE!

    Audio VIDEO

    video codec: codec:

    h.264/AVC, Mp3

    Image size: sampling frequency: size:

    1280 x 720 44100 Hz 16-bit

    Bitrate: Bitrate:

    4500 256 Kbps

    Rate: channels:

    Original stereo

    ------------------------------------------------------------------------------------------ ----

    Can I convert the files and I then press get media in the elements and I can now edit files and create my video - clips quality still looks sharp and good and I can't spot any difference between the multilateral trading system and converted files that I use outside elements and when I use it in the elements everything is superb.

    Then I'm done editing I press share and I uploaded on youtube 1920 x 1080

    Then when I finally see the YouTube video quality is shaded, fuzzy, crumsy, fuzzy you say and not sharp at all - you can take a look here

    http://www.YouTube.com/watch?v=w3VoDdNQ0xQ

    How to improve this quality - how to preserve the quality of 'origin' of the video files?

    I guess that lose I the quality when I convert? Is it possible to convert the files first?

    Is it possible to improve the quality of the videos that I already have converted and completed?

    Is there a solution

    Please help me - I would be really happy because I really want to put a message out there and help people with discount in shape and people really appreciate clear and accurate movies and it really gives the viewer a better experience to watch it and I know it would really make a difference.

    And btw. IM don't understand computer jargon, so please draw out in the box for me if this isn't too

    Thanks in advance

    The problem is that you take a format camcorder is able to work with and convert to a format that it can NOT work with Premiere Elements.

    This video product Canon AVCHD camcorder. You should shoot any video you want to edit in Premiere Elements only in MXP or FXP mode. Then when you are ready to edit the video in Premiere Elements, you must set up a project for stereo 1920 x 1080 AVCHD. (Unless you're shooting in 5.1 audio. This cam shoots in a number of formats).

    DO NOT CONVERT YOUR VIDEO BEFORE PUT YOU IN FIRST ELEMENTS.

    You can then use these specifications of high quality for YouTube video output.

    http://forums.Adobe.com/thread/623549?TSTART=0

    If you need basic with program, don't forget to check out my tutorial series free 8-part basic training to the first Elements Muvipix.com support site.

    http://forums.Adobe.com/thread/537685?TSTART=0

  • Noob need conceptual help for the footer

    I used the search but have not found what I was looking for.

    I am a newbie in Dreamweaver, I CS5 I want to convert a few ancient sites, I created in Frontpage. I won't import or convert any code, I intend to only use the text and images of the old pages and pour them into a newly designed simple Dreamweaver site, just with external CSS files and any tables or absolute positioning for page layout.

    I need help to understand the conceptual differences between PS and DW. Right now I want to have a footer that goes at the bottom of each page and edit and maintain the content and presentation of this footer in one place (I guess only one place, in any case). In the public Service the footer is a separate file and a bot placed on a page would include one on the server side. What is the best way to create and maintain a footer of many pages with DW, please?

    I think I will use the header template and footer fixed 2 column unless someone tells me not to do as a basic design for my pages.

    My old sites, badly needing an update, are http://www.utahcrossroads.org et http://www.taggartfamily.org

    Thank you.

    Thank you, but it is a solution of $95 instead of one that uses myDreamweaver as is.

    The link points to the method of execution in SSIs, not the product to sell.

    The product itself is excellent and a great investment. I use it on many of my sites.

    However, the article is one of the clearest cases step by step tutorials that I know for setting up includes. This part is free.

    I've been poking around in a book, and it seems that what I want is a library file. Questions with who?

    Yes.

    DW library items look a lot like DW models that they share the same major drawback.

    You edit the library item and Dreamweaver manages the local update of all the pages on your computer that contain that element of the (good) library.

    Then all of the pages that has been changed (as a result of the update of the library item) must be downloaded separately on the server (bad).

    If you make a small change to a library item and, if 100 pages this library item, then these 100 Paag must each be individually uploaded to the server. That's two steps and a lot of tedious downloading.

    This is the case whenever you edit a library item.

    With SSIs (Server Side Includes), update you a simple, small text file, download this unique small text and a few seconds all of your site pages that are affected by that SSI is updated.

    I used elements of DW templates and library for many years and maintenance/update was a chore that has not happened often.

    When I discovered includes, I stopped using models and the library points. Maintenance/update is now a pleasure and occurs regularly.

  • The analysis of string values

    Hello. I have a variable:

    var myString:String = "811 812";

    I want to be able to do is to have a code that crosses myString and analyzes the numbers between the commas. This value then is passed to my switch function where I assign methods based on the results.

    As I am new to AS3.0, I don't know where to start.

    Thanks for any help.

    -Of

    var myString:String = "811 812";

    var re: RegExp = /, /;
    Table of results: var = myString.split (re);

    trace(result[0]); 811
    trace(result[1]); 812

  • the analysis of string separated by commas

    Hello people,

    Indeed, this forum is great and has always helped me a lot. I hope that this time remains the same. Thank you guys for you continues a support and help.

    I have a value string as a-, b, c, d, e, f

    Just sql help, I want to put each value of the string above in a different line. If the output should be-

    one
    b
    c
    d
    e
    f

    using procedures would not only complex, but I just want to do by using queries.

    Please advise,
    Thank you.
    SQL> with t as (select 'ABC,DEF GHI,JKL' str from dual)
      2  select regexp_substr(str,'[^,]+', 1, level) list
      3  from t connect by level <= NVL( LENGTH( REGEXP_REPLACE( str, '[^,]+', NULL ) ), 0 ) + 1
      4  /
    
    LIST
    ---------------
    ABC
    DEF GHI
    JKL
    
  • the analysis of string data

    Hi all

    I got the series communation data string in this format:

    Bridge of fuse HtrPwrV VDispV/C PAO V/C DTM V/C DiffC NC
    OK VALIDATES 1.80 0.95 3.16 0.53 537 29.6
    369 647 110

    And I want to extract some value from it. I realized that they are separated with spaces between them. So I thought about transfer them into an array and then extract some lines/columns there. But I don't know how to do.

    Could you give me an idea. Or if you have a better way, then please show me!

    Thank you

    Here is a way.

  • The analysis of string in the input channels

    Hello

    I'm trying to parse a string into a matrix, or tables in real time. Thus, assuming that the line below is part of my entry

    A134B932C321D95E532F1024A13B932C321D95E532F1024

    I would like to analyze the data and constantly create a matrix (or a series of paintings), such that each row corresponds to a letter. For example, something like below:

    13 13

    932 932

    321 321

    95 95

    532 532

    1024 1024

    I was able to parse the string using the letters as delimiters, but I was not able to find a way to organize the values. The goal of my project is to receive 6 different a mircoprocessor input and displaying the entries on different graphics.

    Thank you in advance,


Maybe you are looking for