skip to Main Content

Can Oracle SQL parse a json column conditionally?

in a DB table, table1 I have the following JSON in column1: { "key1": [ { "subkey1":"somevalue1", "subkey2":"somevalue2", }, { "subkey1":"interestedvalue1", "subkey2":"interestedvalueToParseAndGet", } ] } If I do the following, select JSON_VALUE(column1, '$.key1[1].subkey2') from table1 I'm able to get interestedvalueToParseAndGet…

VIEW QUESTION

Can Scala read JSON with string values without quotes?

I have a log in below format(json/ion) where the value of time_of_initial_request is in timestamp format but without double quotes. {post_handler_type:"trace", default_marketplace:"prod_iad", request_id:"5MTB3656X0JRL38R6LJY", rest_uri:"productApi/feature", client_logging_id:"PredictionMetadata", time_of_initial_request:2023-05-24T15:00:00.577Z } Since the field(key) name does not have quotes, I am using the allowUnquotedFieldNames…

VIEW QUESTION

Issue while converting Json to List of objects

I'm trying to convert Json file to C# list of objects. However I encounter a problem while converting the json file. My attempt: List<Root> array = JsonConvert.DeserializeObject<List<Root>>(json); Error: Newtonsoft.Json.JsonSerializationException: 'Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'System.Collections.Generic.List`1[ConsoleApp1.Root]'…

VIEW QUESTION

How to get parent element reference in a JSON query?

I have the following json: { "virtual_machines": [ { "guest_name": "guest1", "mac_address": [ "00:01:02:03:04:05" ], "vm_network": { "00:01:02:03:04:05": { "ipv4": [ "192.168.2.23" ], "ipv6": [ "fe80::896:2e12:c059:4237" ] }, "c2:e3:7c:ac:60:c5": { "ipv4": [ "10.42.0.0" ], "ipv6": [] }, "5a:00:fb:5e:3d:65": { "ipv4":…

VIEW QUESTION
Back To Top
Search