GrowwStacks interview question

Convert javascript to json formate