typing and JSON example (after console log)