I am making a simple phone book system where user and admin inputs via command prompt. I am using a login.json file that has got just this -
{ "username" : "admin", "password" : "12345" }
I want to know whats the best way in java 8 now to read the json file and check if the user is admin or not.
I would also want to know how can i store the DOB given by a user in java 8 LocalDate API, if we can. I have a model user class that has all the fields but not sure how the LocalDate from java 8 would help me set the date passed from command prompt, seems we have to do some parsing there ??
Thanks in advance