Fixed nullpointer when inner json is null