Added JSON functionality, makes things easier yay