Modifications to fit external framework : JSON method unchanged.