Minimize JSON Data, exclude recursion causing a mermory overflow error