Use Your AI Agent to Talk to Your Products with Notehub IQ

Blues Developers
What’s New
Resources
API Reference
Notecard and Notehub API documentation
Blog
Technical articles for developers
Connected Product Guidebook
In-depth guides for connected product development
Developer Certification
Get certified on wireless connectivity with Blues
Newsletter
The monthly Blues developer newsletter
Terminal
Connect to a Notecard in your browser
Webinars
Listing of Blues technical webinars
Blues.comNotehub.io
Shop
Docs
Button IconHelp
Support DocsNotehub StatusSecurity AdvisoriesVisit our Forum
Button IconSign In
Docs Home
What’s New
Resources
API Reference
Notecard and Notehub API documentation
Blog
Technical articles for developers
Connected Product Guidebook
In-depth guides for connected product development
Developer Certification
Get certified on wireless connectivity with Blues
Newsletter
The monthly Blues developer newsletter
Terminal
Connect to a Notecard in your browser
Webinars
Listing of Blues technical webinars
Blues.comNotehub.io
Shop
Docs
Notecard
Notecard API Reference
Notecard Guides
Notecard Firmware Releases
Notecard Product Family
Notecard Walkthrough
Overview
Notecard Requests & Responses
JSON Fundamentals
How the Notecard works with JSON
Notecard Interfaces
Essential Requests
Time & Location Requests
Inbound Requests & Shared Data
Web Transactions
Low-Power Firmware Design
Low Bandwidth Design
Working with the Notecard AUX Pins
Updating Notecard Firmware
Advanced Notecard Configuration
homechevron_rightDocschevron_rightNotecardchevron_rightNotecard Walkthroughchevron_rightJSON Fundamentals

JSON Fundamentals

JavaScript Object Notation, or JSON, is a lightweight format for storing and transporting data of most any kind. It contains "fields" of your own choosing to convey strings, numbers, boolean values, other JSON objects, and arrays of values:

{
 "temp": 34.5,
 "skies": "cloudy",
 "windy": true
}

You can learn more about using JSON and its syntax in this online tutorial.

How the Notecard works with JSON

As you work with the Notecard API, there are a few behaviors and caveats to keep in mind:

  • Fields whose value is 0, 0.0, false, or "" are omitted from Notecard responses. Treat a missing field as its zero value rather than as an error. The same rule applies to the body of Notes in templated Notefiles as they arrive in Notehub. You may add "full": true to note.add requests to keep empty fields.

  • Numbers with no fractional part are written without a decimal point, so a value of 34.0 comes back as 34.

  • Integers greater than 2^31 or less than -2^31, while generally supported, are technically "Undefined Behavior" by the JSON specification and thus may be converted into floating point numbers by some implementations.

  • Field order and surrounding whitespace are not preserved as JSON moves between services, so don't depend on either.

  • Requests follow the ndjson convention of newline-delimited JSON: each request is a single line terminated by \n. A newline anywhere else truncates the request, and any other control character — including a tab — is replaced with a space before parsing, even inside a string value. Responses contain no whitespace between tokens and are terminated with \r\n.

  • Notecard accepts UTF-8, including multi-byte characters and \uXXXX escape sequences, and returns strings unescaped. String length limits are counted in bytes rather than characters, though, so budget accordingly. For large or arbitrary binary data, use a binary transfer mechanism instead.

Notecard Requests & Responses Notecard Interfaces
Can we improve this page? Send us feedback
© 2026 Blues Inc.
© 2026 Blues Inc.
AboutDocsAPI ReferenceTermsPrivacy