1b.app
Link copied -

api /api/contact-get/json/ has changed (a field appeared in the array of groups, the name of which consists of the group id)

Today there was an error of integration with 1s. We take contacts from the box by api (method /api/contact-get/json/ ) . Start to fail. The reason was established that a field appeared in the array of groups, the name of which consists of the group id. The 1s handler does not allow the use of field names starting with numbers. If this is a mistake, please correct it. Here is a screenshot of the response to the request
Original question is available on version: ru

Answers:


The 1s handler does not allow the use of field names starting with numbers.

This is a problem of a purely 1C handler.
The JSON data format does not prohibit using numbers as element keys. JSON as such is valid.
27.07.2021, 14:28
Original comment available on version: ru

In parallel with this, this API has the ability (especially for such software as 1C) to receive output in XML format. Together with the added variable in the output for 1 contact (the variable was already in the output of the list) - the output was formatted for XML format - it gives valid XML - you can tell OneBox where to update and use the XML output
27.07.2021, 14:44
Original comment available on version: ru

Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment