working json prototype