Questions tagged [fromjson]

The fromjson tag should be used in connection with the interpretation of a JSON string as a stringified representation of an arbitrary JSON entity, e.g. "1" as the number 1.

fromjson as a function would convert a JSON string representing an arbitrary JSON document to the corresponding JSON value, e.g "1" to the number 1, "[1]" to the array [1], and so on.

49 questions
1
vote
0 answers

Java gson fromJson half the time showing SignatureParser.class source not found error

And the curious thing is that the other half of thetime it actually works... I simply don't get why this is happening. For some more context, what I'm trying to do is to instanciate an objecto of the class Indexer defined as follows: public class…
1
vote
1 answer

Parse JSON and JSON values with jq

I have an API that returns JSON - big blocks of it. Some of the key value pairs have more blocks of JSON as the value associated with a key. jq does a great job of parsing the main JSON levels. But I can't find a way to get it to 'recurse' into…
0
votes
1 answer

JQ parsing of escaped quotes

We have an AWS autoscaling lifecycle hook that is placing messages on an SQS queue. We are trying to parse these with JQ, and while the format is mostly JSON, all the key/value pairs within the body object have escaped double quotes. Can't seem to…
Matt
  • 72
  • 1
  • 6
0
votes
0 answers

Access embedded json in value

Is there any chance to access a embedded json value inside a value? The assume json example looks like this: { "key": "{\"test\":1,\"check\":\"default\"}" } This is more of a curiosity question. What I always do today is echo '{"key":…
0
votes
0 answers

How to turn JSON file into dataframe ('tibble')

I have downloaded some data from a platform and would like to convert it into a tibble I can manipulate in R. I have tried doing this, but continue coming up with errors. The structure of my JSON file is as follows List of 7 $ TimeSeries …
Andrea
  • 11
  • 2
0
votes
1 answer

do.call(rbind, ... ) exhibits unexpected behaviour inside a loop

I'm trying to download some data and have the following library(RJSONIO) first.day <- as.Date(paste0("202201","01"), "%Y%m%d") today <- Sys.Date() months <- format(seq(first.day, today,by="month"), "%Y%m") length(months) months.df.list <-…
Illimar Rekand
  • 133
  • 1
  • 15
0
votes
0 answers

How to get and display value from Api in flutter

I want to fetch and display the data from api. data is like card details name, number, email etc.. I want to get multiple cards based on phone number. for eg: if 2 cards linked to phone number. it will show both cards. for that i am using Future…
Nihar
  • 15
  • 6
0
votes
4 answers

fromJSON method not being called in Flutter

I am trying to call this method but TempReceiptModel.fromJSON is not being called. Future getTempReceipt({ required UserModel? user, }) async { TempReceiptModel? tempReceipt; try { // print(tempReceipt.) …
0
votes
0 answers

The method 'doc' isn't defined for the type 'CollectionReference'

I am getting a few error in my project. Can you help me? The argument type 'StreamTransformer' can't be assigned to the parameter type 'StreamTransformer'. The method 'doc' isn't defined for the type…
0
votes
1 answer

Pyspark from_json function equvalent

I have dataframe with column containing json string, which is converted to dictionary using from_json function. Problem occured when json contains not typical string inside like: '\\"cde\\"', all json: '{"key":"abc","value":"\\"cde\\""}'. When…
gorrch
  • 521
  • 3
  • 16
0
votes
2 answers

Parsing string with fromjson and collapsing into the parent in JQ

I am attempting to parse out the following json array below. The activities object is a string and I have successfully been able to parse it out with the following in jq. [ { "id": 101, "created_at": "1987-10-12 03:20:22.903", …
0
votes
1 answer

TypeError: map[$_get] is not a function , Dart

I am writing a program that uses HTTP to get a list of themes from a server, and when transforming the data from JSON I am getting this error. TypeError: map[$_get] is not a function packages/outlook/src/provider/response.dart 28:19 …
Rodrick Vy
  • 36
  • 5
0
votes
1 answer

Reading JSON file using R

product_id.datahandler({"ID": [], "ProductName": ["Marbel Mabel"], "Description": ["pearl white, natural marbel"] .....}) I have a data as above. I tried to read it as JSON using fromJSON but failed (not all data was parsed (0 chars were parsed out…
Kusisi Karem
  • 107
  • 7
0
votes
2 answers

How to parse List from List in fromJson

I have two models: book and review. In book.dart, I have a field to list down the reviews (defined in review.dart) associated with this book. class Book { final String id; final String bookid; final String title; final String author; final…
TaylorR
  • 3,746
  • 5
  • 25
  • 42
0
votes
1 answer

Error in open.connection(con, "rb") : HTTP error 401

I am trying to extract option table for security IOC from the website https://www.nseindia.com/option-chain The JSON link containing the data is https://www.nseindia.com/api/option-chain-equities?symbol=IOC When i try to import data into R, i get an…
Nad Pat
  • 3,129
  • 3
  • 10
  • 20