Weird JSON Result of GetObjectDefNames REST API

Posted by Mike Fechner on 11-Nov-2013 01:08

The JSON response of the GetObjectDefNames call

https://www.rollbase.com/rest/api/getObjectDefNames?sessionId=putinyoursessionid&output=json

looks like this:

"[$GROUP, $ORG_DEPT, $ORG_FUNC, $ORG_LOCN, $SETTINGS, account55, COMMLOG, contact40, Customer4, item10, lead23, meeting, order6, orderline, salesrep_recordname, todo, USER]"

A "proper" JSON array of strings does not require the outer quotes and either string would have to be quoted individually like:

["$GROUP", "$ORG_DEPT", "$ORG_FUNC", "$ORG_LOCN", "$SETTINGS", "account55", "COMMLOG", "contact40", "Customer4", "item10", "lead23", "meeting", "order6", "orderline", "salesrep_recordname", "todo", "USER"]

As a matter of fact, the ABL JSON ObjectModelParser does require me to modify the response (first sample) to match the second sample by using String manipulations. That's probably not how it should be.

Is that intended or a bug?

All Replies

Posted by Santosh Patel on 12-Nov-2013 10:11

It should be the latter. A bug has been logged against this and will be tracked.

Posted by Santosh Patel on 30-Apr-2014 14:25

Hello Mike,

This issue has been fixed in 2.2 release (26th April 2014) of the product.

Thanks,

Santosh

Posted by Mike Fechner on 30-Apr-2014 14:27
I have noticed that! Thanks!
[collapse]
From: Santosh Patel [mailto:bounce-sapatel@community.progress.com]
Sent: Mittwoch, 30. April 2014 21:26
To: TU.Rollbase@community.progress.com
Subject: RE: Weird JSON Result of GetObjectDefNames REST API
 
Reply by Santosh Patel

Hello Mike,

This issue has been fixed in 2.2 release (26th April 2014) of the product.

Thanks,

Santosh

Stop receiving emails on this subject.

Flag this post as spam/abuse.

[/collapse]
This thread is closed