×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
Both parsing and generating JSON is very easy using [embedded] SQL if you're on >=7.2, I would say definitely don't roll your own solution.
Tim.
________________________________
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> on behalf of Stephen Piland <Stephen@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sent: 24 June 2021 15:42
To: rpg400-l@xxxxxxxxxxxxxxxxxx <rpg400-l@xxxxxxxxxxxxxxxxxx>
Subject: JSON, DATA-GEN, YAJL, and Special Character Field Names
I have used DATA-INTO and YAJL a good bit and have been able to consume / decode JSON messages that contain field / element names with disallowed characters. For example.. e-Commerce and YAJLINTO converts it to e_Commerce. There isn't a way to do this in reverse, is there? I'm thinking no since YAJLGEN would not know the special character we'd need to put into the JSON message.
I'm thinking we'll have to use SQL or build the string manually.
Any thoughts would be appreciated.
--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
https://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link:
https://amazon.midrange.com
As an Amazon Associate we earn from qualifying purchases.