Hi, I’m trying to filter a JObject the same way I do with JArrays, but for some reason it won’t let me, as it Throws the error “Cannot access child value on Newtonsoft.Json.Linq.JValue”.
In the “Assign” activity, right box, I have this logic:
The logic is simple, the JObject contains dates at the level “jObjectTransactions(“prices”)(0)(0)”, so what I’m doing is parsing those dates from String to DateTime to compare and keep only the ones that are not older than 30 days.
At the left side of the panel, I have the same variable “jObjectTransactions”, to which I’m trying to assign the filtered JObject.
Does anyone knows how to achieve what I want?. I would really appreciate it.
Feel free to port it to LINQ Query Syntax. Also check the needed difference logic now-Date or date-now and the threshold (30). We used another one as sample data did not cover such date s and would result to empty filter result