Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Titan » Support of JSON module(Titan seems not to support the JSON module in Part 11 of the TTCN specification)
Support of JSON module [message #1816779] Wed, 06 November 2019 18:21 Go to next message
Olaf Bergengruen is currently offline Olaf BergengruenFriend
Messages: 127
Registered: November 2018
Senior Member
Hi Elemer,

Firstly thanks for your overview and the example in your latest posting on using JSON. It was really helpful!

Motivated by you example we attempted to build more generic types using the JSON module in Annex A in Part 11 of the TTCN specification (ETSI ES 201 873-11 V4.8.1 (2018-05)). I attach below the module.

The problem seems to be that Titan can not compile it.
Can you confirm that Titan does not support JSON.ttcn in Annex A?

Olaf @ ETSI STF160
  • Attachment: JSON.ttcn
    (Size: 6.56KB, Downloaded 121 times)
  • Attachment: JSON.ttcn
    (Size: 6.56KB, Downloaded 114 times)
Re: Support of JSON module [message #1816796 is a reply to message #1816779] Thu, 07 November 2019 06:51 Go to previous messageGo to next message
Kristof Szabados is currently offline Kristof SzabadosFriend
Messages: 60
Registered: July 2015
Member
Hi,

If I understand correctly this is the problematic part of the code:
const JSON.String_short cs_rs := "\";

shouldn't this be written like below according to the standard:
const JSON.String_short cs_rs := "\\";

Kristof
Re: Support of JSON module [message #1816800 is a reply to message #1816779] Thu, 07 November 2019 09:32 Go to previous messageGo to next message
Botond Baranyi is currently offline Botond BaranyiFriend
Messages: 55
Registered: February 2016
Member
Hi,

Also, many of the variant attributes in JSON.ttcn are not recognized by our JSON codec.
I'd suggest using the compiler option '-E', which causes unrecognized variant attributes to only produce warnings instead of errors (if you manage to get past the issue with the backslash characters).

Best regards,
Botond Baranyi
Re: Support of JSON module [message #1816801 is a reply to message #1816800] Thu, 07 November 2019 10:11 Go to previous messageGo to next message
Elemer Lelik is currently offline Elemer LelikFriend
Messages: 1120
Registered: January 2015
Senior Member
Hi Olaf,

JSON attributes supported by Titan are described in ch.4.26 of the reference guide.
Subchapter 4.26.5. Differences from the TTCN-3 standard will give you a summary of the differences.


BR


Elemer
Re: Support of JSON module [message #1816802 is a reply to message #1816801] Thu, 07 November 2019 10:59 Go to previous messageGo to next message
Olaf Bergengruen is currently offline Olaf BergengruenFriend
Messages: 127
Registered: November 2018
Senior Member
Thanks, Elemer and all for your replies.

Conclusion for us: The module JSON.ttcn in Annex A can not be used.

By the way, where is the current Titan Reference Guide.
Regards,
Olaf
Re: Support of JSON module [message #1816803 is a reply to message #1816802] Thu, 07 November 2019 11:07 Go to previous messageGo to next message
Elemer Lelik is currently offline Elemer LelikFriend
Messages: 1120
Registered: January 2015
Senior Member
Hi Olaf,

every binary package contains the documentation, including the reference guide.

Else, documentation can be downloaded from https://projects.eclipse.org/projects/tools.titan/downloads

BR
Elemer
Re: Support of JSON module [message #1816804 is a reply to message #1816803] Thu, 07 November 2019 11:17 Go to previous messageGo to next message
Olaf Bergengruen is currently offline Olaf BergengruenFriend
Messages: 127
Registered: November 2018
Senior Member
Thanks, Elemer!
I should have known where the Titan documentation is :-)
Olaf
Re: Support of JSON module [message #1816875 is a reply to message #1816801] Sat, 09 November 2019 16:02 Go to previous messageGo to next message
Olaf Bergengruen is currently offline Olaf BergengruenFriend
Messages: 127
Registered: November 2018
Senior Member
Hi Elemer and Botond,

last question on this topic (my colleagues will certainly ask):
Is it in your Titan road-map to eventually support module JSON.ttcn in Annex A Part 11 of the TTCN spec?

Regards,
Olaf

Re: Support of JSON module [message #1816889 is a reply to message #1816875] Mon, 11 November 2019 06:50 Go to previous messageGo to next message
Elemer Lelik is currently offline Elemer LelikFriend
Messages: 1120
Registered: January 2015
Senior Member
Hi Olaf,

certainly, but I could not give you an ETA right now.


Best regards
Elemer
Re: Support of JSON module [message #1817757 is a reply to message #1816889] Thu, 28 November 2019 14:42 Go to previous messageGo to next message
Elemer Lelik is currently offline Elemer LelikFriend
Messages: 1120
Registered: January 2015
Senior Member
Hi Olaf,

we added this issue to our backlog, see

https://bugs.eclipse.org/bugs/show_bug.cgi?id=553584

The reason for the discrepancy is that we have published our version before the standard. :)
It's not a great effort though to get them in sync.


BR
Elemer
Re: Support of JSON module [message #1817771 is a reply to message #1817757] Thu, 28 November 2019 21:51 Go to previous messageGo to next message
Olaf Bergengruen is currently offline Olaf BergengruenFriend
Messages: 127
Registered: November 2018
Senior Member
Thanks, Elemer!
Olaf
Re: Support of JSON module [message #1822399 is a reply to message #1817771] Thu, 05 March 2020 16:38 Go to previous messageGo to next message
Elemer Lelik is currently offline Elemer LelikFriend
Messages: 1120
Registered: January 2015
Senior Member
Hi Olaf,

pls give it a try:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=553584

(You will of course need to build the latest binary from source)

BR

Elemer




[Updated on: Thu, 05 March 2020 17:03]

Report message to a moderator

Re: Support of JSON module [message #1822442 is a reply to message #1822399] Fri, 06 March 2020 12:15 Go to previous messageGo to next message
Olaf Bergengruen is currently offline Olaf BergengruenFriend
Messages: 127
Registered: November 2018
Senior Member
Thanks, Elemer! That's great!

I will check next week.

Have a nice week-end,
Olaf
Re: Support of JSON module [message #1822512 is a reply to message #1822442] Mon, 09 March 2020 07:41 Go to previous message
Olaf Bergengruen is currently offline Olaf BergengruenFriend
Messages: 127
Registered: November 2018
Senior Member
Yes, Elemer, it works!

Now we can deliver our MCPTT test suite with the JSON module, at least the Titan compiler can handle it.

Thanks,
Olaf
Previous Topic:Eclipse Titan 6.6.1 release announcement
Next Topic:SCTP support in Eclipse Titan part 4
Goto Forum:
  


Current Time: Thu Oct 10 04:50:49 GMT 2024

Powered by FUDForum. Page generated in 0.04509 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top