1

Gurtam moves to JSON ECMA-404 standard and PLAYGROUND?

Тема: Gurtam moves to JSON ECMA-404 standard and PLAYGROUND?

Hi guys,

will there be a "playground" to test own implementations?
Not that there is no way to test and on 01.01.2017 you switch into new JSON format and we start to test than :-(

Thanks

Wolf

Politeness dictates it to write his name on a post
2

Gurtam moves to JSON ECMA-404 standard and PLAYGROUND?

Re: Gurtam moves to JSON ECMA-404 standard and PLAYGROUND?

Don't worry about Wialon migration to JSON standard ECMA-404.
In most cases Your apps will work correctly.
Here are some main nuances which You should check:
1. All keys and string values must be double quoted: {"key":"value"} - no keys without quotes or in single quotes
2. All numeric values must be decimal: {"key":256} - no hex-values, like 0xff
3. Spaces are only allowed inside double quoted string values:  {"key":"value with space"}

For Your convenience we are working over deployment of remote-api service (like hst-api.wialon.com) for testing Your apps with new JSON standart.
As soon as it will be ready we'll notify You here.
Don't hurry up to make changes in Your code, just wait a little for testing dns.

Head of Wialon Local Department
Gurtam
3

Gurtam moves to JSON ECMA-404 standard and PLAYGROUND?

Re: Gurtam moves to JSON ECMA-404 standard and PLAYGROUND?

I think it's a good proposal but many aspects of API JavaScript change?

4

Gurtam moves to JSON ECMA-404 standard and PLAYGROUND?

Re: Gurtam moves to JSON ECMA-404 standard and PLAYGROUND?

Remote-api service with new JSON ECMA-404 standard parser is ready for testing of Your custom apps.
It's url: http(s)://test-api.wialon.com
Just replace hst-api.wialon.com in Your apps with this dns (or create copy of app with new dns) and test for some errors.

Head of Wialon Local Department
Gurtam
5

Gurtam moves to JSON ECMA-404 standard and PLAYGROUND?

Re: Gurtam moves to JSON ECMA-404 standard and PLAYGROUND?

New JSON parser was applyed to http(s)://dev-api.wialon.com (beta server).
Test service http(s)://test-api.wialon.com now is stopped.
Next week this new parser will be applyed to http(s)://hst-api.wialon.com (master).

Head of Wialon Local Department
Gurtam
6

Gurtam moves to JSON ECMA-404 standard and PLAYGROUND?

Re: Gurtam moves to JSON ECMA-404 standard and PLAYGROUND?

Hello all,

My team has yet to update our code to be on par with the new JSON standard. We used third party devs to create the initial data pull using Wialons API but since the Wialon server changes, the pull has been nullified.

It appears that the changes are simple syntax updates to the code. Would you be able to estimate the approximate time it would take to complete such changes? I am attempting to determine if this update can be completed in house or whether our company should rely on the help of our devs.

7

Gurtam moves to JSON ECMA-404 standard and PLAYGROUND?

Re: Gurtam moves to JSON ECMA-404 standard and PLAYGROUND?

anguyen, the most frequent problems with json is lack of double quotes around keys and values. You should check json in all Your requests to Wialon. Pay attention to requests that return now as a result code 4. It is difficult to say how much time this fixes can take.
I depends on Your app complexity and Wialon API requests count is used. It is possible to fix json of middle complexity app for one day. This regards to Wialon Remote API. If Wialon SDK JS is used - in most cases no changes is needed.

Head of Wialon Local Department
Gurtam
8

Gurtam moves to JSON ECMA-404 standard and PLAYGROUND?

Re: Gurtam moves to JSON ECMA-404 standard and PLAYGROUND?

and we found some changes in flags which changed a bit (hex and dec flag or so, dont remember exactly).
I would not change the sourcecode if i did not code it!

Wolf.

Politeness dictates it to write his name on a post
9

Gurtam moves to JSON ECMA-404 standard and PLAYGROUND?

Re: Gurtam moves to JSON ECMA-404 standard and PLAYGROUND?

wwbusch aka Buwo, yes, hex numbers like 0x100 are not allowed by ECMA-404 standard. Use decimal 256 instead.

Head of Wialon Local Department
Gurtam