add getter for JSON string and call from main file