Added missing web prelude
Fixed small bug in json api