Help with parsing something.
-
Hi, I have found a problem during making a config for my website and I am quite stuck.
The information in the Logs looks like this:
"age": 0,
"zip": null,
"city": null,
"state": null,
"country": null,
"gender": null,
The issue is it repeats this code like 12 times and the first two say "null" for everything (like the spoiler says) and the rest actually holds information that I need. Can I like pull all the results and essentially put them in a bucket, and if it says "null" then throw it away, then in the end delete all the repeating ones leaving one last result..? I hope that makes sense lol
-
Add me on Discord:INFINITEY#6622 i fix this for you.
-
@INFINITEY said in Help with parsing something.:
INFINITEY#6622
I only have telegram, do you have that?
-
I think you need a regex for this one
-
Why not do a recursive parse and then replace commas and null with nothing so that it just holds the value you need
-
@Ruri said in Help with parsing something.:
I think you need a regex for this one
@Damond1 said in Help with parsing something.:
Why not do a recursive parse and then replace commas and null with nothing so that it just holds the value you need
Is there a thread or something i can read to learn how to use both of these?
-
For regex I don't think a thread would even be enough to understand how to do it, it takes a tutorial and quite a bit of training. Anyways @Damond1 's idea is not bad. Basically you want to place a parse block, tick recursive and parse with LR between
city
and,
. Then it will output a list variable, just run it through a Utility block (List -> RemoveElements EqualTonull
) and you'll have only the not-null ones.