JSON (JavaScript Object Notation) is a lightweight, human readable, human writable data interchange format. It is based on a subset of JavaScript syntax, and is the most common payload format for HTTP APIs.
Tag: JSON

Episode #569
Polymorphic Attributes in Rails – Part 2
Previously, guest chef Corey Haines joined us to talk about representing complex structured data with custom attribute types in Rails. Today, he returns to show us how to implement polymorphism …

Episode #568
Polymorphic Attributes in Rails – Part 1
Sometimes model attributes need to have more structure than a simple string or number. In part 1 of a 2-part series on ActiveRecord polymorphic attributes, guest chef Corey Haines demonstrates …

Episode #548
JSON API in Rails – Part 2
Last week Youssef Chaker demonstrated the risks in adding a quick, ad-hoc JSON endpoint. Today he's going to show you how to leverage JSON-API to create RESTful HTTP interfaces that …

Episode #547
JSON API in Rails – Part 1
It's one thing to add a basic JSON endpoint. Another to grow an API that's consistent, predictable, well-documented, and fails gracefully. Join guest chef Youssef Chaker for an exploration of …

Episode #372: Awesome Print
Today we take a lightning tour of a power tool for inspecting Ruby objects.

Episode #349: Log Formatting
Today's dish is heavy on presentation... log message presentation, that is.

Episode #184: Sequel, Postgres, JSON
Recently we looked at the Sequel library for interacting with SQL databases. Today, we'll use Sequel again to play with the native JSON support in PostgreSQL 9.3.