skip to Main Content

Parse JSON in java (custom)

I have a JSON array in the following format: [["1234","OS","01/31/2023","02/01/2023","First Day"],["1245","OS","01/23/2023","01/24/2023","Last Day"],["3411","OS","09/21/2022","09/21/2022","Second Day"]] In Java, I would like to parse this array and store data in the following format: String[] firstElements = ["1234" , "1245", "3411"]; String[] secondElements = ["OS",…

VIEW QUESTION

GSON parse a JSON value

I'm working on a web service that is written in Java and I have to get the response from a JSON format. Below is the JSON. How can I get the values properly so I can used them? { "message":…

VIEW QUESTION

Dynamic values within a JSON parameter using Python

To be clear, I am practicing my Python skills using CoinMarketCaps API. The below code works great: import json # 1 JSON string in list, works info_1_response = ['{"status": {"timestamp": "2023-01-25T22:59:58.760Z", "error_code": 0, "error_message": null, "elapsed": 16, "credit_count": 1, "notice":…

VIEW QUESTION

Unnest non-array JSON in BigQuery

I have data arriving as separate events in JSON form resembling: { "id":1234, "data":{ "packet1":{"name":"packet1", "value":1}, "packet2":{"name":"packet2", "value":2} } } I'd like to unnest the data to essentially have one row per 'packet' (there may be any number of packets).…

VIEW QUESTION
Back To Top
Search