Codeless handling network result

im making a network http call to a service that returns a json
this is working fine.
but say i want to save the returned json to the database. how can i extract the values from the response ?

Hi,

user Get propery of block from Object menu:
image

Regards,
Stanislaw

Hey
lets say the json if something like this:

{
“fruit”: “Apple”,
“size”: “Large”,
“color”: “Red”
}
if i use “Get property” and set the “of” variable to “fruit”
the result i get is empty

It should look next way:

Get property fruit of your_object

yes sorry it was a typo
i did it like you said
here is an image

Is Stores type Array or Object?
If this is array, then you should perform this operation on each item in array.

the stores is the result of the http request.
how does codeless handle it? as a string?

the property im trying to get is array. not a string.
i will try to get the array items.

the stores is the result of the http request.
how does codeless handle it? as a string?

It depends on what your http end-point returns.

the result i get is empty

the property im trying to get is array. not a string.

So maybe the value of this property is just empty array in your case?

got it to work. thank you very much for the support

Could you please explain how you made it work? I am facing the same issue.

you have to know what type the data your getting is. is it array or object. then use the correct codeless block

If possible, could you share your code(less) fragment?

nothing to share. my data is not the same as yours. you cant just copy the blocks…

Sorry. Newbie here. Here is my response from network call which I am naming “get-response” object. I am trying to parse out summaryDetail:regularMarketDayHigh:fmt. I am expecting the result to be 381.47.

What should I enter in " " of Get Property logic?

{
“get-response”: {
“summaryDetail”: {
“totalAssets”: {},
“circulatingSupply”: {},
“dividendYield”: {
“raw”: 0.0086,
“fmt”: “0.86%”
},
“navPrice”: {},
“regularMarketDayHigh”: {
“raw”: 381.47,
“fmt”: “381.47”
},
“fromCurrency”: null,
“twoHundredDayAverage”: {
“raw”: 304.0808,
“fmt”: “304.08”
},

Hello @Sanjay_Iyer

You need to create a chain of “get property of” blocks

Regards, Vlad

Thanks Vlad. Tried the first block with “items” and it returned nothing. Am I doing something wrong? Here is my logic:

Sorry. Wrong screenshot.
image

you need to use names of your own properties

So these are the first few lines of the json returned from GET. Instead of “items” in the block above, I used “summaryDetail”. Still seeing nothing in the body. Any clue?

{
“get-response”: {
“summaryDetail”: {
“totalAssets”: {},
“circulatingSupply”: {},
“dividendYield”: {
“raw”: 0.0086,
“fmt”: “0.86%”
},
“navPrice”: {},
“regularMarketDayHigh”: {
“raw”: 381.47,
“fmt”: “381.47”
},
“fromCurrency”: null,
“twoHundredDayAverage”: {
“raw”: 304.0808,
“fmt”: “304.08”