Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3737

Does anyone Trim values returned in JSON from an API?

$
0
0

I don’t fully trust data I’m receiving from an outside source via their API. So I’m tossing ‘Trim’ at all the values before commiting them to the database.

Question: Does anyone worry about trimming this sort of data? And if so, is there a shortcut for what I’m doing with 2 steps? (below)

found_enrollment_specialty = enrollment(0).Value("Enrollment Specialty")
found_enrollment_specialty = found_enrollment_specialty.Trim

8 posts - 5 participants

Read full topic


Viewing all articles
Browse latest Browse all 3737

Trending Articles