Professional Documents
Culture Documents
Text Datatype: Data Formats
Text Datatype: Data Formats
Overview
API Endpoints
Row Identifiers
RESTful Verbs
Application Tokens
Authentication
Response Codes & Headers
System Fields
CORS & JSONP
Filtering & Querying
Simple Filters
SoQL Queries
Paging Through Data
SoQL Function and Keyword Listing
Data Transform Functions
Data Formats
JSON
GeoJSON
CSV
RDF-XML
Datatypes
Checkbox
Fixed Timestamp
Floating Timestamp
Line
Location
MultiLine
MultiPoint
MultiPolygon
Number
Point
Polygon
Text
URL
Other APIs
Discovery
Metadata
Dataset Management
API Keys
OData
A string of text is an arbitrary sequence of Unicode characters. How the characters are
encoded for response will be dependent on the negotiated HTTP charset. If there are
characters in the string that cannot be represented in the negotiated charset, they will be
replaced. It is strongly recommended that all clients use UTF–8 to prevent this from
happening.
When using SoQL, string literals are created using the single quote ('). For example:
text_value='string literal'
text_value='Bob''s string'
The following operators can be used on text fields:
Operator Description
<= TRUE for strings that are alphanumerically before or equal to this string
>= TRUE for strings that are alphanumerically after or equal to this string
2.12.0
Keyword Name Description Availability
greatest(...) Returns the largest value among its arguments, ignoring NULLs. 2.1
least(...) Returns the smallest value among its arguments, ignoring NULLs. 2.1
not like '...' Allows for matching text fields that do not contain a substring 2.1
starts_with(...) Matches on text strings that start with a given substring 2.1
For example, to query the City of Chicago Salaries to get only those employees who work
for the aviation department (AVIATION):
try it docs copy json
https://data.cityofchicago.org/resource/tt4n-kn4t.json?department=AVIATION
try it docs copy json
https://data.cityofchicago.org/resource/tt4n-kn4t.json?
$where=starts_with(job_titles, 'CHIEF')