Changed object literals to JSON-compatible format.