I suggest to put the whole switch into another method that returns the value. It could  take the valueString and the JSONObject(3) as parameters so it is not specific to this snak type. Shorter methods, clearer code.