REST is an architectural pattern that specifies properties about the interface, not the data - how does using JSON over XML make your interface not RESTful? In his dissertation[1], Roy Fielding always refers to data in terms of resources rather than specific formats.
[1] https://www.ics.uci.edu/~fielding/pubs/dissertation/rest_arc...