Updated json.lua to add the rest of the code to check for a nil string before starting