get_json_value handles more package.json cases more correctly