getting versions from JSON