Decoded parameters and some JSON refactoring