Try replacing the memory tag value at the end of the JSON before converting it, I am able to parse json with floats and what not in it.
In your case before the encode hardcode it with something like tags[0][‘value’] = 80
And see if that works.
As well the ‘path’ variable may be a BasicTagPath and not a string so you could try overwriting that as a string as well.
If those two solve it, it would be pretty easy to write a recursive script that goes through all of it to find oddly typed values like that and convert them