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