<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.es.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>7 Apr 2026 14:05:23 Z</lastBuildDate><pubDate>7 Apr 2026 14:05:23 Z</pubDate><description>Hello everyone,&#13;
&#13;
I'm currently working on a WINDEV 2024 project that consumes several external REST APIs. The challenge I'm facing: some APIs return JSON responses where the structure changes based on the request parameters (e.g., optional fields appear/disappear, or data types vary).&#13;
&#13;
Right now I'm handling this with JSONToExtract + manual error checking for each possible field. But the code is getting messy fast — lots of IF statements and EXCEPTION blocks.&#13;
&#13;
Has anyone found a cleaner way to handle dynamic or unpredictable JSON structures in WLanguage? Ideally something that:&#13;
&#13;
Doesn't crash when a field is missing&#13;
&#13;
Can infer types on the fly&#13;
&#13;
Plays nicely with nested objects&#13;
&#13;
I came across a discussion about dynamic data parsing in other environments (not WINDEV specifically) that gave me a few ideas at https://happymodd.com.br&#13;
&#13;
But I'd love to hear how this community approaches the problem natively in WINDEV. Are there built-in functions I'm overlooking? Or do you pre-process the JSON with a script before feeding it to JSONToExtract?&#13;
&#13;
Thanks in advance for any pointers!</description><ttl>30</ttl><generator>WEBDEV</generator><language>es_ES</language><link>https://forum.pcsoft.fr/en-US/pcsoft.es.windev/4409-managing-external-api-responses-with-dynamic-json-structures/read.awp</link><title>Managing external API responses with dynamic JSON structures</title><managingEditor>moderateur@pcsoft.fr (The moderator)</managingEditor><webMaster>webmaster@pcsoft.fr (The webmaster)</webMaster></channel></rss>
