some json fixes