Guru: Web Services, DATA-INTO and DATA-GEN, Part 3In this tip I’m going to discuss some of the options used with DATA-GEN and DATA-INTO to deal with the fact that element names in JSON and XML frequently contain characters that are not legal in RPG names. This is important because RPG’s -INTO and… Jul 12 21July 12, 2021Article at IT Jungle
Guru: Web Services, DATA-INTO and DATA-GEN, Part 2In Part 1 of this series I discussed the use of DATA-GEN and DATA-INTO to create “blog entries” via a web service. This time I am going to focus on using the GET HTTP method to retrieve blog entries. As you will see the basic process is very… Apr 12 21April 12, 2021Article at IT Jungle
Guru: Web Services, DATA-INTO and DATA-GEN, Part 1Many of the “Can you help me with. . . ” communications that cross my desk these days include reference to JSON. Sometimes the questioner is receiving JSON in a file, or has to retrieve it from a web service, or needs to generate JSON in response to… Apr 05 21April 05, 2021Article at IT Jungle
Diving Deeper Into Web Services with DATA-INTO and DATA-GENYAJLINTO Options for Special Data Types JSON supports a boolean data type (i.e. an indicator in RPG terms) - the values for such elements being 'true' and 'false'. By default, YAJLINTO maps these to to '1' (true) and '0' (false). These defaults work… May 30 20May 30, 2020Article at Tech Channel
DATA-INTO Plus DATA-GEN for Web ServicesGenerating and Consuming JSON with RPG Of course, one could always do it the hard way, i.e. stringing together requests and parsing responses "by hand". However, RPG gives us three main alternatives to this: Embed SQL and use its JSON… Apr 06 20April 06, 2020Article at Tech Channel