Skip to content

Armstrongest

Programming, Patterns, and Paradox

  • Code
  • Musings
  • Design
  • Contact

Month: March 2017

Flatten a hierarchical JSON object into a table

Posted on March 1, 2017 by Gary Armstrong

Recently I had a requirement to take a list of JSON objects that had a hierarchical structure and represent it as a table. For reference, here’s a sample of what the JSON object looked something like. If you want to try on your own, feel free to copy below. [{ “ProductVariants”: [{ “Images”: [{ “ImageTypeID”: 27, […]

Posted in Code Tagged javacript, json, recursion, typeof Leave a comment

Recent Articles

  • What would a PURE binary clock REALLY look like? May 22, 2017
  • Teach your kids binary (Part 1: Logic) May 19, 2017
  • Creating Custom Category Layouts using the Divi theme April 20, 2017

Archives

  • May 2017 (2)
  • April 2017 (2)
  • March 2017 (1)
  • February 2017 (1)
  • January 2017 (4)
  • October 2016 (1)
  • September 2016 (3)
  • August 2016 (1)

Categories

  • Code (14)
  • Design (1)
  • Lab (1)
  • Musings (7)
  • WordPress (7)
Proudly powered by WordPress | Theme: armstrongest by Gary Armstrong.