Extension of String Variable limits…

LinerSeven

Active member
Dear @MacroDroidDev ,

As you are aware, MacroDroid's String Variable has a limit of 5000 bytes,
but is it possible to extend the data area of the variable?

I want to prevent long JSON or XML data from being missing in the middle 'before parsing it'.

This may only be the case in Japanese government offices,
but the publicly provided data is in old XML standards that differ from the new JSON,
and getting them to change is unfortunately going to take a very, very long time.
And… those XML data may exceed the limits of the String Variable that MacroDroid has.

I'm struggling because of the limitations of the way macros have to be built to use data provided by public authorities.

TIA for your help.

Best Regards,

Liner Seven.
 

LinerSeven

Active member
Oh that's interesting. 5000 bytes is about 5 kb. That's relatively small data for a text, or do you mean 5000 kb?
My apologies. The correct word is "5000 characters", and 10 kb is the upper limit, because 5000 Japanese 2-byte characters will cut off the text halfway through. In other words, I wrote it to mean 5 kb.
 

sampleuserhere

Active member
I see. I got curious so I ran a couple of test against JSON files generated from extracting Japanese YouTube videos with yt-dlp.

Macrodroid displayed 16kb data (about 16k characters long) just fine. However, Macrodroid crashed when I tried to see 400kb data.

JSON parse processed both of them properly though. The crash happened only when I tried to view the variable value via Local variable panel.

Are those the sort of behaviour you're facing?
 

LinerSeven

Active member
I checked again and found that this phenomenon occurs in responses from certain government offices and is not Macrodroid problem.
As a matter of fact, I found that English text can store more than 5000 characters in the variable and Japanese text has no problem.
I'm very sorry about this.
 

LinerSeven

Active member
I see. I got curious so I ran a couple of test against JSON files generated from extracting Japanese YouTube videos with yt-dlp.

Macrodroid displayed 16kb data (about 16k characters long) just fine. However, Macrodroid crashed when I tried to see 400kb data.

JSON parse processed both of them properly though. The crash happened only when I tried to view the variable value via Local variable panel.

Are those the sort of behaviour you're facing?
Yes, because the behaviour of the system is the same as that of the other systems. Same behaviour.
It appears to be a possible problem with the character encoding contained within the response
 
Top