× 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.



I think as a minimum yajl_case_convert_name needs to be replaced/modified rather than not called. By not calling it you will end up with invalid RPG names for json names such as my-simple-name. Your fix only works if the resulting name is already valid as an RPG name.


Jon P.

On Dec 30, 2023, at 10:01 AM, Brad Stone <bvstone@xxxxxxxxx> wrote:

In source code YAJLR4 I made this change and it seems ok...

//newField = yajl_case_convert_name(%str(tempField));
newField = %str(tempField);

On Sat, Dec 30, 2023 at 8:46 AM Brad Stone <bvstone@xxxxxxxxx> wrote:

Ah... sounds fun! I did take a quick look and it seems it's a deep dive
too. Sounds fun!

On Fri, Dec 29, 2023 at 6:41 PM Jon Paris <jon.paris@xxxxxxxxxxxxxx>
wrote:

I has a brief chat about this with Scott some time back and took a look
at some of the code behind it. It is on my "when I have time" project list
but I have not got round to it so far.

I'll race you!


Jon P.


On Dec 29, 2023, at 1:17 PM, Brad Stone <bvstone@xxxxxxxxx> wrote:

Just a weird question before I dig into the source, but is there a way
to
have YAJLGEN create the RPG code with the JSON objects the same case
they
are in the document instead of all upper case?

Sorry, just my OCD in action. :)

Bradley V. Stone
www.bvstools.com
Native IBM i e-Mail solutions for Microsoft Office 365, Gmail, or any
Cloud
Provider!
--
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.


--
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.


--
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.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.