View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - API handling of tabs in JSON - ProjeQtOr
 
 

API handling of tabs in JSON

More
22 Oct 2015 18:15 #1 by caccia
Hi,

Encountered an issue while attempting to use the API:
sometimes we get tabulations inside of a JSON response, which is not authorized by the standard. That was creating havoc with our handling :)

Quick & dirty solution which maybe seems to do the trick is to replace tabs with \t character, but i'm not sure that's very good.
It seems to be in the /api/index/jsonDumpObj function in any case. (?)

Hope it's clear enough...

Please Log in or Create an account to join the conversation.

More
22 Oct 2015 18:28 #2 by babynus
Can you provide and example ?
Are the tabs added or are they part of some fields (description or result for instance) ?

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
23 Oct 2015 00:16 #3 by babynus
tabs will be removed in API :
$val = preg_replace('/[ ]{2,}|[\t]/', ' ', trim($val));

Will be deployed in V5.1.0

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.035 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.