Working for any any JSON. Double trimming