Make a Nestable category list from JSON; print JSON string based on list