remove unused code
basic JSON parsing