fix small bug of query
Test jersey and json