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
Back To Top
Search