Skip to content

Instantly share code, notes, and snippets.

@bblanchon
Created August 20, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bblanchon/97e45a3399c7aa0267d0 to your computer and use it in GitHub Desktop.
Save bblanchon/97e45a3399c7aa0267d0 to your computer and use it in GitHub Desktop.
Reference program for JSON generator's size
void setup() {
Serial.begin(9600);
Serial.println("{\"sensor\":\"gps\",\"time\":1351824120,\"data\":[48.756080,2.302038]}");
Serial.println("{\n \"sensor\": \"gps\",\n \"time\":1351824120,\n \"data\": [\n 48.756080,\n 2.302038\n ]\n}");
}
void loop() {
// not used in this example
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment