skip to Main Content

R Parsing output from JSON API

I want to retrieve data from IMF JSON RESTful Web Service API. I have found a dataset name and series code, so I submit a following request, usinng httr2 pacakge: library(httr2) library(tidyverse) req <- request("http://dataservices.imf.org/REST/SDMX_JSON.svc/CompactData/IFS/PCPI_IX?startPeriod=2015&endPeriod=2020") %>% req_perform() As a result…

VIEW QUESTION

Kotlin Volley Json get value

I've been working on this for some time and searching the internet, but I just can't find the solution. I use volley to query an api and receive this response. { "Title": "Groupname", "requestedURL": "url", "responseURL": [ "https://i.mg.xxx/p372qxd3694e1.jpg", "https://i.mg.xxx/qs06k8e3694e1.jpg", "https://i.mg.xxx/mjfzw6e3694e1.jpg"…

VIEW QUESTION

Jackson can't deserialize some values with @get:JsonProperty

When I'm trying to deserialize code below import com.fasterxml.jackson.annotation.JsonProperty import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper fun main() { val objectMapper = jacksonObjectMapper() val jsonString = "{" + ""v_string1": "some_string1", " + ""v_string2": "some_string2", " + ""v_string3": "some_string3", " + ""v_string4": "some_string4"" + "}" val…

VIEW QUESTION

Javascript – Taking specific values in a JSON file and make another JSON file with extracted

I have a JSON file that is taken from the data of the project. However, there are information in it that I do not need for my specific goal. This is the JSON data: const toSql = [ {"id":1,"battlerName":"Actor1_1","characterIndex":0,"characterName":"Actor1","classId":1,"equips":[2,0,0,3,0],"faceIndex":0,"faceName":"Actor1","traits":[{"code":51,"dataId":2,"value":1},{"code":51,"dataId":4,"value":1}],"initialLevel":1,"maxLevel":99,"name":"Reid","nickname":"","note":"","profile":""}, {"id":2,"battlerName":"Actor1_2","characterIndex":1,"characterName":"Actor1","classId":1,"equips":[1,0,0,9,0],"faceIndex":1,"faceName":"Actor1","traits":[],"initialLevel":1,"maxLevel":99,"name":"Priscilla","nickname":"","note":"","profile":""},…

VIEW QUESTION
Back To Top
Search