Skip to Content
RESTful Java Web Services - Third Edition
book

RESTful Java Web Services - Third Edition

by Balachandar Bogunuva Mohanram
November 2017
Intermediate to advanced
420 pages
10h 29m
English
Packt Publishing
Content preview from RESTful Java Web Services - Third Edition

Sample JSON file representing employee objects

Here is a sample JSON document file called emp-array.json, which contains the JSON array of the employee objects. The content of the file is as follows:

[ {"employeeId":100,"firstName":"John","lastName":"Chen",   "email":"john.chen@xxxx.com","hireDate":"2008-10-16"},   {"employeeId":101,"firstName":"Ameya","lastName":"Job",   "email":"ameya.job@xxx.com","hireDate":"2013-03-06"},   {"employeeId":102,"firstName":"Pat","lastName":"Fay", "email":"pat.fey@xxx.com","hireDate":"2001-03-06"} ]  
javax.json.JsonValue does not have a DATE ValueType. In the previous example, hireDate will be treated as a STRING type, so handling of DATE values requires explicit parsing as per the date format.

We will use this ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

RESTful Java Web Services, Second Edition

RESTful Java Web Services, Second Edition

Jobinesh Purushothaman
Java Web Services

Java Web Services

David A Chappell, Tyler Jewell

Publisher Resources

ISBN: 9781788294041Supplemental Content